delete_document
Deletes a document PERMANENTLY — and its file attachment where applicable. Irreversible: a plain removal from the view without loss is done with update_document({archived: true}). REFUSED (nothing deleted, the error lists the edges) while work-plan dependency edges name this document as a prerequisite: deleting it would silently unblock the dependent work. Remove those dependencies first. Also refused when the dependency graph cannot be read (retry).
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": {
"documentId": "<documentId>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Identifier of the document to delete PERMANENTLY (and its file attachment where applicable). A plain removal from the view is done with update_document({archived: true}). | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |