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

# Delete Collection

> Delete a collection, its files, and its search index.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.doctly.ai/api/v1/collections/{collection_id} \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"confirmation": "delete Contracts 2026"}'
  ```
</RequestExample>

**DELETE** `/api/v1/collections/{collection_id}`

Deleting a collection removes all of its files and their indexed content. This cannot be undone.

## Path Parameters

<ParamField path="collection_id" type="string" required>
  The collection's UUID.
</ParamField>

## Request

<ParamField body="confirmation" type="string" required>
  Must be the exact string `delete {collection name}` (e.g. `delete Contracts 2026`). This guards against accidental deletion.
</ParamField>

## Response

```json Response theme={null}
{ "ok": true }
```
