Delete or restore note
delete_noteSoft-delete or restore a Trilium note and any child notes without another parent; clones elsewhere stay intact.
Instructions
Delete (soft) or restore a note. Deleting removes the note and every child that has no other parent; clones elsewhere survive. Restore with action="undelete".
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": {
"noteId": "<noteId>",
"action": "<action>"
},
"name": "delete_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | "delete" soft-deletes the note and all its branches; children with no other parent are deleted with it (the whole subtree), while clones placed elsewhere survive. "undelete" restores a deleted note (needs at least one non-deleted parent); find deleted notes with get_note_history. | |
| noteId | Yes | ID of the note |