> ## 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.

# Delete Target Account

> Delete a target account by ID, name, or LinkedIn URL

At least one parameter is required.

## Query Parameters

<ParamField query="id" type="string">
  Target account ID
</ParamField>

<ParamField query="account_name" type="string">
  Exact account name
</ParamField>

<ParamField query="linkedin_url" type="string">
  Company LinkedIn URL
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.clustr-ai.com/api/public/target-accounts?account_name=Acme%20Corp" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  requests.delete(
      "https://api.clustr-ai.com/api/public/target-accounts",
      headers={"Authorization": "Bearer YOUR_API_KEY"},
      params={"account_name": "Acme Corp"},
  )
  ```

  ```javascript JavaScript theme={null}
  await fetch(
    "https://api.clustr-ai.com/api/public/target-accounts?account_name=Acme%20Corp",
    { method: "DELETE", headers: { Authorization: "Bearer YOUR_API_KEY" } }
  );
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "message": "Target account deleted successfully",
      "deleted_count": 1
    }
  }
  ```

  ```json 400 theme={null}
  {
    "success": false,
    "error": {
      "message": "At least one of id, account_name, or linkedin_url is required",
      "code": "BAD_REQUEST"
    }
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "error": {
      "message": "Invalid or missing API key",
      "code": "UNAUTHORIZED"
    }
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": {
      "message": "Target account not found",
      "code": "NOT_FOUND"
    }
  }
  ```
</ResponseExample>
