delete_note
Delete a note by sending it to .trash for recovery, or permanently remove it with permanent: true. Provide prevHash to ensure only unchanged notes are deleted.
Instructions
Delete a note. By default it is moved to the vault .trash/ folder (recoverable by moving it back); pass permanent: true to remove it outright.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path of the note to delete. | |
| prevHash | No | Optional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict if the note changed since — so you never delete content you have not seen. | |
| permanent | No | Permanently remove instead of moving to .trash/. Defaults to false. |