delete_document
Preview what will be removed (chunks, images) from the RAG knowledge base, then confirm to delete the document and all associated data.
Instructions
Delete a document and its associated data from the RAG knowledge base.
First call without confirm_delete_data (or with confirm_delete_data=false) to preview what will be deleted (chunk count, image count). Then call again with confirm_delete_data=true to execute the deletion.
This removes all associated data: vector embeddings, BM25 index entries, extracted images, and the ingestion history record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_path | Yes | Path to the document to delete. | |
| collection | No | Collection the document belongs to. | default |
| confirm_delete_data | No | Set to true to execute deletion. When false (default), returns a preview of what will be deleted. |