delete_path
Deletes a specified file or directory tree from a repository. Requires recursive=true for folders and prevents accidental deletion of the workspace root.
Instructions
Delete a file, or a directory tree with recursive=true. Deleting the workspace root is refused. Prefer deleting specific files over 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_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to delete. | |
| recursive | No | Required to delete a directory. Default false. | |
| workspace | No | Workspace alias. Defaults to the active workspace. |