deleteFile
Remove files or directories from the workspace, with support for recursive deletion and trash integration.
Instructions
Delete workspace file or directory. VS Code (with trash) when connected, native fs fallback.
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": {
"filePath": "<filePath>"
},
"name": "deleteFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Workspace or absolute path to delete | |
| useTrash | No | Move to trash instead of permanent delete (default: true) | |
| recursive | No | Delete directory contents recursively (default: false) |