delete-empty-folders
Removes a specified list of empty directories on a target host in deepest-first order, stopping if one cannot be removed; dry-run checks verify before deletion.
Instructions
dbabrain common.cli delete-empty-folders: A list of empty folders, each deleted as delete-empty-folder deletes one, in the order given (deepest first); the first not deleted stops the list (0.37.0).
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
host: Where the file is: {runtime (windows | linux | docker | k8s - stated), access (ssh | winrm), host, port, username, password | key_file, container, sudo}; left out, this machine.
folders (required): The folders, at most 20000, deepest first: each {path, must_be_under}. A parent before its child is refused as not empty and stops the list.
dry_run: Check every fact, delete nothing.
timeout_seconds: Seconds each item may take on the host (its hash runs at disk speed); default 3600.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete-empty-folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |