delete_document
Removes a document and all its associated data (chunks, embeddings, import records) from the database. Optionally deletes the PDF file from storage.
Instructions
删除指定文档
从数据库删除文档及其所有关联数据(chunks、embeddings、导入记录等)。 可选择同时删除 MinIO 中的 PDF 文件。
Args: doc_id: 文档的唯一标识符 also_delete_object: 是否同时删除 MinIO 中的 PDF 文件,默认 False
Returns: 删除结果,包含删除的记录数量
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| also_delete_object | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||