delete_directory
Delete an empty directory by its workspace-relative path. For non-empty directories, set recursive=true to remove the folder and its contents; the workspace root is never deleted.
Instructions
Delete a directory below the configured workspace root. Non-empty directories require recursive=true. The workspace root itself can never be deleted.
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 | Workspace-relative directory path | |
| recursive | No | Delete the directory and all of its contents |