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

# Delete knowledgebase

> Delete a knowledgebase and all its documents

This endpoint permanently deletes a knowledgebase and all its associated documents. This action cannot be undone.

### Path Parameters

**id** `integer` *required*

The unique identifier of the knowledgebase to delete

### Response

**message** `string`

Success message

```json 200 Response theme={null}
{
  "message": "Knowledgebase deleted successfully."
}
```

```json 404 Not Found theme={null}
{
  "error": "Knowledgebase not found."
}
```

### What Gets Deleted

When you delete a knowledgebase:

* **All documents** in the knowledgebase are permanently deleted
* **Vector embeddings** are removed from the vector database
* **Document store data** is cleaned up from external services

### What Happens to Attached Assistants

Any assistants that were using this knowledgebase will have their knowledgebase reference removed. They will continue to function but without the knowledgebase context.

> [!WARNING]
>
> This action is irreversible. All documents and their processed content will be permanently deleted. Make sure you want to delete this knowledgebase before proceeding.


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