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

# 删除知识库

> 删除知识库及其所有数据

删除知识库时会同时：

1. 删除 pgvector 中该知识库的所有向量数据
2. 使 BM25 索引失效
3. 删除所有关联文档的本地文件
4. 删除 Next.js 端的数据库记录

<Warning>此操作不可逆，知识库及其所有文档和向量数据将被永久删除。</Warning>

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

<ParamField path="id" type="string" required>
  知识库 ID
</ParamField>

<ResponseField name="message" type="string">
  操作结果消息
</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": "知识库已删除"
  }
  ```
</ResponseExample>
