delete_file
Deletes a file or directory at a specified path. Supports recursive deletion of directories and force deletion even if the path does not exist.
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 | Path to delete | |
| force | No | Force deletion even if path doesn't exist | |
| recursive | No | Recursively delete directories |