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

# Delete source

> Delete a source from an agent's knowledge base.

# Delete knowledge source

Deletes a source from the knowledge base along with all its indexed chunks. The agent stops using that information immediately.

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

**Required scope:** `chatbots:write`

***

## Path parameters

| Parameter | Type | Description |
| - | - | - |
| `chatbot_id` | string | Agent ID |
| `source_id` | string | ID of the source to delete |

***

## Response `200 OK`

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

***

## Common errors

| Code | Description |
| - | - |
| `NOT_FOUND` | The source doesn't exist or doesn't belong to the specified agent |


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