delete-verified-files
Deletes a list of verified files on a host only after validating each path, name, size, and SHA-256; stops at the first failed deletion and supports dry runs.
Instructions
dbabrain common.cli delete-verified-files: A list of files, each deleted as delete-verified-file deletes one - its own facts, its own script, over one connection; 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.
files (required): The files, at most 20000: each {path, file_name, size_bytes, sha256, must_be_under} - every fact required on every item, no other field. One bad or repeated item refuses the whole list before the host is reached.
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-verified-files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |