Delete Note
deletePermanently deletes a document or attachment from the vault, updating search indices for Markdown files. Requires path confirmation; irreversible without git history.
Instructions
Permanently delete a document or attachment.
For .md documents: removes the file and immediately updates all search indices — do not call 'reindex' afterward. For attachments: only the file is deleted (no index to update). IRREVERSIBLE unless git history exists. Confirm the path with the user before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to the document or attachment to delete. | |
| if_match | No | Optional etag obtained from a previous 'read' call. When provided, the deletion only proceeds if the file has not been modified since that read (optimistic concurrency). Omit to delete unconditionally. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||