obsidian_delete_file
Remove files or directories from your Obsidian vault. Use this tool to delete outdated notes or duplicate content after merging information into other notes.
Instructions
Delete a file or directory from the vault.
DESTRUCTIVE OPERATION. Requires explicit confirmation. Use carefully when
removing outdated or duplicate notes from your Zettelkasten.
Args:
params (DeleteFileInput): Contains:
- filepath (str): Path to file/directory to delete
- confirm (bool): Must be True to proceed with deletion
Returns:
str: Success or error message
Example:
Delete a duplicate note after merging content into another note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Input Schema (JSON Schema)
{
"properties": {
"params": {
"$ref": "#/$defs/DeleteFileInput"
}
},
"required": [
"params"
],
"type": "object"
}