directory_delete
Delete a directory inside a registered workspace with dry-run preview, recursive confirmation for non-empty folders, and undo support.
Instructions
Delete one directory and return operation_id and undo_available. Destructive.
A non-empty directory requires recursive true and confirm_recursive true;
one without the other is refused before anything is touched. The scope is
exactly the named subtree inside the selected workspace root — this tool
cannot delete outside it, and Filekeeper's own .filekeeper/ state
directory is refused. dry_run lists what would be removed and deletes
nothing. Otherwise the whole tree is recorded as one operation and is
undoable.
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": "directory_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No | ||
| recursive | No | ||
| confirm_recursive | No |