delete_file
Delete notes, attachments, or folders from an Obsidian vault, moving them to .trash by default for recovery; set permanent to erase them and see which links will break.
Instructions
Delete a note, attachment or folder. Default moves it to the vault's .trash folder (recoverable); permanent:true deletes it. Reports links that will break.
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": {
"file": "<file>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| permanent | No | ||
| recursive | No | Required to delete a non-empty folder |