Permanently delete one version of a B2 file
b2_delete_file_versionPermanently delete a specific file version from a Backblaze B2 bucket by its exact fileId. This irreversible action removes that version only, leaving older ones in place.
Instructions
PERMANENTLY destroys ONE version of a file. B2 cannot undo this, and older versions of the same name are left in place. Requires the exact fileId, which you must get from b2_list_files first: this tool will not look one up from a file name. Refused unless B2_AUDIT_LOG is configured, since every deletion is recorded. When B2_ARCHIVE_ROOT is set, a copy of the version is saved locally before it is destroyed. To remove a file from view reversibly, use b2_hide_file instead.
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": {
"bucketName": "<bucketName>",
"fileName": "<fileName>",
"fileId": "<fileId>"
},
"name": "b2_delete_file_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Exact version id to destroy. Get it from b2_list_files. | |
| fileName | Yes | Name of the file version to delete. | |
| bucketName | Yes | Bucket containing the file. |