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

# Delete ICP

> Permanently deletes an ICP (Ideal Customer Profile)

Permanently deletes an ICP (Ideal Customer Profile) by its unique identifier. This action cannot be undone.

<Warning>
  Deleting an ICP is a permanent action. All associated configuration, including
  lead provider criteria, custom filters, and CRM filters will be permanently
  removed. Lead lists that were generated from this ICP will remain but will no
  longer be associated with the deleted ICP.
</Warning>

## Authentication

This endpoint requires authentication. The user must be signed in.

<Note>
  Users can only delete ICPs where they are listed in the `userIds` array, or if
  they are an admin user. Attempting to delete an ICP without proper
  authorization will result in a 403 Forbidden error.
</Note>

## Request

<ParamField path="id" type="string" required>
  The unique identifier (UUID) of the ICP to delete.
</ParamField>

## Response

Returns an empty response with HTTP status 204 (No Content) on successful deletion.

## Response Examples

<ResponseExample>
  ```json 204 theme={null}
  ```

  ```json 403 theme={null}
  {
    "error": {
      "code": "FORBIDDEN",
      "message": "You do not have access to this ICP"
    }
  }
  ```

  ```json 404 theme={null}
  {
    "error": {
      "code": "NOT_FOUND",
      "message": "ICP not found: 550e8400-e29b-41d4-a716-446655440000"
    }
  }
  ```
</ResponseExample>

## Error Codes

| Status Code | Error Code       | Description                                               |
| ----------- | ---------------- | --------------------------------------------------------- |
| 204         | -                | ICP successfully deleted. No response body.               |
| 401         | `UNAUTHORIZED`   | User is not authenticated. Ensure a valid session exists. |
| 403         | `FORBIDDEN`      | User does not have access to this ICP.                    |
| 404         | `NOT_FOUND`      | No ICP exists with the specified ID.                      |
| 500         | `INTERNAL_ERROR` | An unexpected server error occurred.                      |
