delete_document
Deletes a document by its full registry path, moving the file to the workspace trash so it can be restored from trash within 30 days.
Instructions
Delete a document. IMPORTANT: You must provide the full document path from the registry (e.g., "documents/my-document.md" or "documents/folder/my-document.md"). Recoverable: the file is moved to the workspace trash and the result reports trashPath (.hillnote/trash//…, kept 30 days) — restore_from_trash puts it back. NOTE: Do NOT use this for tasks in tasklists - use delete_task instead.
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": {
"workspace": "<workspace>",
"documentId": "<documentId>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Workspace path/name | |
| documentId | Yes | Full document path from registry (e.g., "documents/my-document.md"). MUST be the complete path including "documents/" prefix and file extension. |