Delete Document
delete_documentRemove a document permanently from the index—its chunks, full-text entries, and vectors—without affecting the source file. Use to undo accidental ingestion; re-ingesting rebuilds it.
Instructions
Remove a document from the index: its chunks, its full-text entries and its vectors. The source file on disk is never touched. Use it to drop something ingested by mistake — an edited file does NOT need this, because re-ingesting one already replaces the version it supersedes. Deletion is permanent; the document's chunk_ids stop resolving, and re-ingesting the file rebuilds it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | From get_document_outline's library listing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| document_id | Yes | ||
| source_path | Yes | ||
| chunks_removed | Yes |