delete_file
Delete non-markdown files from an Obsidian vault, moving them to .trash for recovery or permanently unlinking with the permanent flag. Markdown files, directories, and symlinks are refused.
Instructions
Delete a non-markdown file from the vault. Requires a readwrite API key.
Peer to delete_note, which stays markdown-only.
By default this is a soft delete: the file moves to
.trash/<YYYYMMDD-HHMMSS>-<basename>-<8 hex> inside the vault, keeping a
copy the user can recover. Two files with the same name deleted in the same
second both survive — the trash never clobbers.
With permanent=True the file is unlinked outright and this server has no
recovery path; the user's backups are the only rollback.
Refuses markdown files (use delete_note, which understands the index and
backlinks), directories, and symlinks. Non-markdown files are not indexed,
so search and embeddings are unaffected either way.
Args:
path: Vault-relative path to the file.
permanent: If True, unlink instead of moving to .trash/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| permanent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |