delete_document
Remove a single indexed document by ID, or clear all documents from the Sourcebook workspace when no ID is provided.
Instructions
Delete one document, or all documents in this workspace when no ID is provided.
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": {
"session_id": "<session_id>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| document_id | No |