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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "delete_document"
}
}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 |