packages/kilo-docs/pages/automate/tools/delete-file.md
Delete a file or directory from the workspace. This tool provides a safe alternative to rm commands and works across all platforms.
path (required): Relative path to the file or directory to deleteThis tool safely deletes files and directories with user confirmation. For directories, it validates all contained files and shows statistics before deletion.
.kilocodeignore rules<delete_file>
<path>temp/old_file.txt</path>
</delete_file>
<delete_file>
<path>old_project/</path>
</delete_file>
When deleting a directory, the tool:
The tool provides clear error messages for:
.kilocodeignore rules