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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "delete_file"
}
}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. |