delete_file
Permanently delete a file by ID, removing it from disk and search index. Use when the file is truly obsolete.
Instructions
DESTRUCTIVE. Permanently delete one file by ID. KB files are unlinked from disk AND removed from the FTS5 index; project reference files only have their index entry removed (the file on disk is left alone so the watcher does not fight your editor). Not idempotent — deleting an unknown ID throws. No external auth or rate limits. Returns {success: true}. Use only when the file is truly obsolete; to deprioritise without losing data, untag (remove_tags) or unfavorite (set_favorite) instead. Bulk variant: delete_files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | File ID |