delete_file
Remove a file or empty directory from the file system, ensuring operations stay within allowed directories. Prevents deletion of non-empty directories for safety. Use with caution—this action is irreversible.
Instructions
Delete a file or empty directory from the file system. Use with caution as this operation cannot be undone. For safety, this tool will not delete non-empty directories. Only works within the allowed directory. Example: path='old_file.txt' removes the specified file.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes | Path to the file or empty directory to delete |