> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clustr-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove a client company

> Delete one manual or CSV row from your client companies

Deletes one manual or csv row from your [client companies](/client-companies).

**Only that row goes.** If the company also has other sources, such as a CRM row,
it stays on your list with the remaining sources. To stop a company counting as a
client whatever its sources, [mark it not a client](/api-reference/mark-not-a-client)
instead.

<Warning>
  **CRM rows cannot be removed here.** Your next CRM sync would bring them straight
  back, so the request is refused with `crm_row`. Change the property in your CRM,
  or mark the company not a client.
</Warning>

## Path parameters

<ParamField path="id" type="string" required>
  A source row id with source `manual` or `csv`, from the item's `sources` in
  [List client companies](/api-reference/list-client-companies). It is not the
  item's `key`.
</ParamField>

## Errors

| Status | Code          | When                          |
| ------ | ------------- | ----------------------------- |
| 400    | `BAD_REQUEST` | The id is not a uuid          |
| 404    | `NOT_FOUND`   | No such row in this workspace |
| 409    | `crm_row`     | The row comes from your CRM   |

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.clustr-ai.com/api/public/client-companies/0e7d6a52-..." \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": { "deleted": true }
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": { "message": "Client company not found", "code": "NOT_FOUND" }
  }
  ```

  ```json 409 theme={null}
  {
    "success": false,
    "error": { "message": "This company comes from your CRM. Mark it as not a client instead", "code": "crm_row" }
  }
  ```
</ResponseExample>
