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

> Remove a file from a collection and its search index.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.doctly.ai/api/v1/collections/{collection_id}/files/{file_id} \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

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

Deletes the file, its stored versions, and its indexed content.

## Path Parameters

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

<ParamField path="file_id" type="string" required>
  The file's UUID.
</ParamField>
