delete_directory_tool
Delete a directory by path, optionally removing all contents recursively to clean up unwanted files.
Instructions
Delete a 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_directory_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the directory | |
| recursive | No | If True, delete directory and all contents |