delete_file
Remove a file or directory permanently within allowed paths. Set 'recursive' to true for non-empty directories and 'force' for read-only files. Use with caution as the action is irreversible.
Instructions
Delete a file or directory. Use with extreme caution as this operation cannot be undone. When deleting directories, all contents will be permanently removed. The recursive option must be explicitly set to true to delete non-empty directories. Only works within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
force | No | Set to true to force deletion even if file is read-only. Use with caution. | |
path | Yes | Path to the file or directory to delete | |
recursive | No | Set to true to delete directories and their contents recursively. Required for non-empty directories. |