delete_file
Remove a file from the filesystem. Specify the file path to delete within allowed directories. Returns confirmation or error message. Ensures secure operation with directory sandboxing.
Instructions
Delete a file from the filesystem.
Args: path (str): File path to delete (absolute or relative to allowed directories)
Returns: str: Success message with deleted file path, or error message if failed
Note: - Path must be within allowed directory roots - Fails if file doesn't exist or cannot be deleted
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes |