delete_directory
Delete a directory safely within allowed paths. Use preview to see what will be deleted or confirm recursive deletion for non-empty directories.
Instructions
Safely delete a directory with protection checks. Only works within allowed paths. Recursive deletion requires confirmRecursive=true. Use preview=true to see what will be deleted first.
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_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the directory to delete | |
| preview | No | Preview what will be deleted without actually deleting | |
| recursive | No | Delete directory and all its contents recursively (REQUIRES CONFIRMATION) | |
| confirmRecursive | No | Explicit confirmation required when recursive=true |