Delete Note
delete_noteDelete a note by moving it to the .trash folder for recovery or permanently remove it with optional reference cleanup across the vault.
Instructions
Delete a note. By default the file is moved to the vault's .trash folder (recoverable inside Obsidian); pass permanent=true to unlink it from disk immediately. When permanent=true, you can additionally pass removeReferences=true to strip wikilinks and markdown links to the deleted file across the vault (embeds are removed entirely; plain links fall back to their visible text). References are never rewritten when the file moves to .trash, since trashed files are recoverable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path from vault root to the note to delete (e.g., 'archive/old.md'). Extension optional. | |
| permanent | No | If true, delete the file permanently from disk; if false (default), move it to the vault's .trash folder so it can be recovered. | |
| removeReferences | No | If true (and permanent=true), strip wikilinks and markdown links pointing at the deleted file across the vault. Embeds are removed entirely; plain links fall back to their visible text (alias if present, else the deleted file's basename). Ignored when permanent=false. Default false — opt in explicitly because the rewrite is irreversible. |