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

# Delete Knowledge

> Permanently remove a knowledge item

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the knowledge item to remove
</ParamField>

<Warning>
  The removal is permanent and the content immediately stops being consulted by
  the assistants. There is no trash bin and no undo.
</Warning>

## Response

Returns `204 No Content` on success.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.leavo.ai/backend/knowledge/9f1c2d34-5678-4abc-9def-0123456789ab" \
    -H "Authorization: Bearer your_api_key_here"
  ```

  ```javascript JavaScript theme={null}
  const id = '9f1c2d34-5678-4abc-9def-0123456789ab';

  const response = await fetch(`https://api.leavo.ai/backend/knowledge/${id}`, {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer your_api_key_here'
    }
  });

  if (response.status === 204) {
    console.log('Knowledge deleted successfully');
  }
  ```

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

  knowledge_id = '9f1c2d34-5678-4abc-9def-0123456789ab'

  response = requests.delete(
      f'https://api.leavo.ai/backend/knowledge/{knowledge_id}',
      headers={'Authorization': 'Bearer your_api_key_here'}
  )

  print('Deleted' if response.status_code == 204 else response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json 204 No Content theme={null}
  // No content
  ```
</ResponseExample>

## Errors

| Code  | Description                                   |
| ----- | --------------------------------------------- |
| `401` | Missing or invalid API key                    |
| `404` | Knowledge item not found in this organization |
