delete_document
Permanently delete a document from a Knowledge Agent you own. Use it to remove damaged or unwanted files before re-uploading a clean copy.
Instructions
Delete a document from a Knowledge Agent you own. This cannot be undone.
To fix a damaged document, delete it, then upload the original file again.
Args: agent_id: ID of a Knowledge Agent you own. document_id: Document ID, from list_documents.
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": {
"agent_id": "<agent_id>",
"document_id": "<document_id>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||