delete_file
Delete files safely with protection checks and preview. Removes files only within allowed paths, with optional cleanup of empty parent directories.
Instructions
Safely delete a file with protection checks. Only works within allowed paths. Use preview=true to see what will be deleted first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to delete | |
| preview | No | Preview what will be deleted without actually deleting | |
| cleanupEmpty | No | Remove empty parent directories after deleting |