# Delete a practice group

Page: https://app.myclaimhouse.com/docs/api/deletePracticeGroup

`DELETE /api/v1/practice_groups/{id}`

Deletes a group that holds no offices; one that still holds offices is 409 CONFLICT (move them out with PATCH /offices/{id} first). Needs a key with the submit permission. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.

Needs a key with `submit` permission.

## Request

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | A practice group ID (pgr_...). |

## Response

The practice group that was deleted. Status `200`.

| Name | Type | Description |
| --- | --- | --- |
| `id` | string | An ID that starts with pgr_. |
| `object` | string | Always `practice_group`. |
| `deleted` | boolean | Always `true`. |

## Errors

| HTTP status | Code | What it means |
| --- | --- | --- |
| 401 | `UNAUTHORIZED` | A valid API key is required. Send it as "Authorization: Bearer <key>". |
| 403 | `PERMISSION_DENIED` | This API key is not allowed to do that. |
| 403 | `FEATURE_NOT_ENABLED` | Practice groups are not enabled for this organization. Ask Claim House to turn them on. |
| 404 | `NOT_FOUND` | Not found. |
| 422 | `INVALID_REQUEST` | The request is not valid. |
| 429 | `TOO_MANY_REQUESTS` | Too many requests of this kind lately. Wait, then try again. |
| 504 | `TIMEOUT` | The request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>. |
| 409 | `CONFLICT` | The resource is not in a state that allows this, or it changed while the request was handled. Read it, then decide whether to send the request again. |
| 500 | `INTERNAL` | Something went wrong on our side. Quote the request ID if you contact us. |

## Example

### Example request

```bash
curl -X DELETE "https://app.myclaimhouse.com/api/v1/practice_groups/pgr_01JM000000E008000000000090" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY"
```

### Example response: 200

```json
{
  "id": "pgr_01JM000000E008000000000090",
  "object": "practice_group",
  "deleted": true
}
```
