Delete a knowledge document
delete_knowledge_documentPermanently delete a knowledge document, its stored file and its
pieces, after explicit user authorization. Agents stop using it at
once. A mismatched confirm_name deletes nothing.
Returns deleted, document_id and name, or an error.
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>",
"confirm_name": "<confirm_name>"
},
"name": "delete_knowledge_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| llm_model | No | The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics. | |
| document_id | Yes | The document's ``id``. | |
| confirm_name | Yes | The document's ``name``, as a safety check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||