delete_file
Deletes a specified file or directory on a 1Panel server, with an optional force flag. Use it to remove unwanted files or clear storage during server administration.
Instructions
Delete file or directory
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 | ||
| forceDelete | No |