delete_note
Remove a note from an Obsidian vault by moving it to the restorable .trash folder by default, or delete it permanently when explicitly requested. Prevents accidental data loss.
Instructions
删除 Obsidian vault 中的笔记。默认移入 vault 根 .trash/(Obsidian 原生可恢复位置,同名自动加时间戳后缀),仅在明确要求时传 permanent=true 永久删除。
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": {
"path": "<path>"
},
"name": "delete_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 要删除的笔记路径(vault 内 POSIX 风格相对路径,需以 .md 结尾) | |
| if_match | No | 乐观锁:传入上次 read_note 返回的 etag,与当前内容不符时拒绝删除 | |
| permanent | No | true=永久删除(不可恢复);默认 false=移入 vault 根 .trash/(Obsidian 可在其界面恢复) |