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

# Eliminar fuente

> Eliminar una fuente de la base de conocimiento de un agente.

# Eliminar fuente de conocimiento

Elimina una fuente de la base de conocimiento y todos sus fragmentos indexados. El agente dejará de usar esa información de inmediato.

<RequestExample>
  ```http theme={null}
  DELETE https://app.chatnorris.ai/api/v2/chatbots/{chatbot_id}/knowledge/{source_id}
  Authorization: Bearer <tu_api_key>
  ```
</RequestExample>

**Scope requerido:** `chatbots:write`

***

## Path parameters

| Parámetro    | Tipo   | Descripción                |
| ------------ | ------ | -------------------------- |
| `chatbot_id` | string | ID del agente              |
| `source_id`  | string | ID de la fuente a eliminar |

***

## Respuesta `200 OK`

```json theme={null}
{
  "status": "success",
  "data": {
    "deleted": true
  }
}
```

***

## Errores comunes

| Code        | Descripción                                           |
| ----------- | ----------------------------------------------------- |
| `NOT_FOUND` | La fuente no existe o no pertenece al agente indicado |
