# `delete_file` Delete a project file. **Input** — `path` (required) Removes the file and the sidecars Godot keeps beside it — `.uid` for scripts, `.import` for assets — then rescans the filesystem so the editor stops showing it. The sidecars matter. A leftover `ssh.gd.uid` pointing at an `ssh.gd` that no longer existed once stopped this very project from compiling: the editor kept trying to load a script that was gone, and took `tools.gd` and `agent.gd` down with it. Deleting the file alone recreates that. ## What it refuses **Directories.** Single files only, so a whole tree can't go in one call. **The addon's own files.** Deleting anything under `res://addons/claude_godot` removes the code running the call, and the dock and its MCP server with it — the same reason [`set_addon_enabled`](set_addon_enabled.md) won't disable this addon either. ## Caution There is no undo, and no trash. The tool description tells the model to say what it is deleting and why first.