delete_file
Delete a file or directory from an Obsidian vault. Recursively removes entire directories and their contents in a single call.
Instructions
Delete a file or directory from the vault. When the path refers to a directory, the deletion is recursive: every contained file and subdirectory is removed before the directory itself is deleted, in a single tool call. The caller does not need to empty the directory beforehand. On a transport-layer timeout the wrapper performs a single direct-path verification query before reporting outcome, so the response always reflects the actual post-condition on the vault.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vaultId | No | Optional vault ID (defaults to configured default vault). | |
| filepath | Yes | Path to the file or directory to delete (relative to vault root). Directories are deleted recursively. |