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

# Excluir Conhecimento

> Remove um conhecimento permanentemente

## Path Parameters

<ParamField path="id" type="string" required>
  UUID do conhecimento a ser removido
</ParamField>

<Warning>
  A remoção é permanente e o conteúdo deixa de ser consultado pelos assistentes
  imediatamente. Não há lixeira nem desfazer.
</Warning>

## Response

Retorna `204 No Content` em caso de sucesso.

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

  ```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 sua_chave_aqui'
    }
  });

  if (response.status === 204) {
    console.log('Conhecimento removido com sucesso');
  }
  ```

  ```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 sua_chave_aqui'}
  )

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

<ResponseExample>
  ```json 204 No Content theme={null}
  // Sem conteúdo
  ```
</ResponseExample>

## Erros

| Código | Descrição                                     |
| ------ | --------------------------------------------- |
| `401`  | Chave de API ausente ou inválida              |
| `404`  | Conhecimento não encontrado nesta organização |
