delete-file
Force-deletes a single specified file only when it is strictly inside a required folder; refuses file lists, patterns, and folders. Use for removing one stray file, with dry-run option.
Instructions
dbabrain common.cli delete-file: ONE stray file to delete by force, inside a named folder (delete-files is refused).
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), access (ssh | winrm), host, port, username, password | key_file, container, sudo}; omitted = this machine.
path: The ONE file, by its absolute path - never a pattern, never a folder.
paths: A list of files: REFUSED since 0.38.0, by delete-files whatever else the request carries and by delete-file before the host is reached.
must_be_under (required): The folder the file must be strictly inside; the fence itself is never deleted.
force: delete-file: must be true - this file has no stored facts to be held to. Without it the command refuses and names delete-verified-file.
dry_run: Measure the file and answer what would be deleted; delete nothing.
timeout_seconds: Seconds the host may take: the file is hashed at disk speed.
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-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |