delete-verified-file
Delete one file only after its name, path, byte size, and SHA-256 hash all match on the host, preventing removal of the wrong file during emergency operations.
Instructions
dbabrain common.cli delete-verified-file: ONE file deleted only when its name, path, bytes and sha256 are all true on the host (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.
path (required): The one file, in full; never a pattern, never a list (
pathsis refused).file_name (required): The file's name - the last part of path.
size_bytes (required): The bytes it must measure on the host now.
sha256 (required): The sha256 it must hash to on the host now - 64 hexadecimal characters.
must_be_under (required): The folder the path must be strictly inside; the fence itself is never deleted.
dry_run: Check every fact, delete nothing.
timeout_seconds: Seconds the host may take - the 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-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |