delete_file
Delete files/directories permanently. Recursive flag removes non-empty directories. Restricted to allowed directories.
Instructions
Delete a file or directory. Use with extreme caution as this operation cannot be undone. For directories, use the recursive flag to delete non-empty directories and their contents. Only works within allowed directories.
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 | ||
| recursive | No | If true, delete directories recursively |