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

# Delete file

> Delete a file and its passages from a knowledge base.

Deletes a file, its stored bytes and its passages. This cannot be undone. Assistants stop finding its passages at once, and Verbeo writes the knowledge base's description again from the files left, unless you wrote it yourself.

## Path parameters

**fileId** `string` *required*

UUID of the file.

## Request

```bash theme={null}
curl -X DELETE "https://api.verbeo.ai/v1/knowledge-base/files/c4ff0c9c-4b3b-4a94-a86e-3d3b64088ae0" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response

`204 No Content`, with no body.

## Errors

| Code | Status | When |
| - | - | - |
| `NOT_FOUND` | 404 | No such file: `File not found`. |
| `INTERNAL_ERROR` | 500 | `The file could not be deleted. Try again in a moment.` Nothing was deleted. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.