delete_file
Permanently delete a file from an Obsidian vault, with a mandatory confirmation step to prevent accidental data loss.
Instructions
Delete a file from the Obsidian vault. WARNING: This permanently removes the file. Use with caution.
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>",
"confirm": "<confirm>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to delete (relative to vault root). | |
| confirm | Yes | Set to true to confirm deletion. Required safety check. |