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

# Delete Knowledge Base

> Delete a knowledge base and all its data

Deleting a knowledge base will simultaneously:

1. Remove all vector data for this knowledge base from pgvector
2. Invalidate the BM25 index
3. Delete local files for all associated documents
4. Delete the database record on the Next.js side

<Warning>This operation is irreversible. The knowledge base, all its documents, and vector data will be permanently deleted.</Warning>

<ParamField header="Authorization" type="string" required>
  Bearer JWT Token
</ParamField>

<ParamField path="id" type="string" required>
  Knowledge base ID
</ParamField>

<ResponseField name="message" type="string">
  Operation result message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123 \
    --header 'Authorization: Bearer <token>'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Knowledge base deleted"
  }
  ```
</ResponseExample>
