delete_file
Permanently delete a file by its ID. Removes it from disk and index for knowledge base files, or only from index for project references. Use for truly obsolete files only.
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 |