delete_file
Remove unwanted files or directories from your project, with support for recursive deletion and flexible path input including absolute, relative, or home directory paths.
Instructions
Deletes a file or directory 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 | Path to delete. Can be absolute, relative to active directory, or use ~ for home directory. | |
| recursive | No | If true, delete directories recursively |