delete_document
Deletes a SiYuan document by block ID, with optional dry-run preview and cascade removal of child documents.
Instructions
Delete a document. Use dryRun:true to preview without deleting. Set cascade:true to also delete child 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": {
"id": "<id>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document block ID | |
| dryRun | No | Preview only, no deletion (default: false) | |
| cascade | No | Also delete children (default: false) |