file_version_delete
Delete a single version of a shared file (destructive, irreversible).
Refuses to delete the only remaining version. If the deleted version was
the current (latest) one, current_version is bumped back to the new
max and -- when the file is published -- the bucket mirror is re-published
to that new current version so the public /s/{slug} route stays
consistent. Returns deleted, current_version_changed, and the
updated file.
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": {
"file_id": "<file_id>",
"version": "<version>"
},
"name": "file_version_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File UUID the version belongs to | |
| version | Yes | Version number to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||