document_delete
Delete a source document's chunks from a collection without affecting other data. Requires explicit confirmation to proceed.
Instructions
Deletes every chunk belonging to one source document from a collection, without touching the rest. Destructive — requires confirm_doc_id to exactly match doc_id, and is blocked in read-only mode. Use only when the user has explicitly confirmed the deletion.
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": {
"collection": "<collection>",
"doc_id": "<doc_id>",
"confirm_doc_id": "<confirm_doc_id>"
},
"name": "document_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| collection | Yes | ||
| confirm_doc_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| collection | Yes | ||
| chunks_deleted | Yes |