delete_file
Delete a file or empty directory on a remote server. Safe mode restricts deletions to temporary directories and protects system directories.
Instructions
Delete a file or empty directory. This is a dangerous operation. In safe mode, only deletes in /tmp and /var/tmp are allowed. System directories are always protected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file or directory to delete | |
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. |