prune_storage_backups
Delete old VM or container backups from storage based on a retention policy, with optional dry-run mode to preview deletions.
Instructions
Prune (delete) old backups from storage according to retention policy.
Args: node: The node name. storage: The storage ID. type: Guest type filter ('qemu' or 'lxc'). vmid: Filter by VM ID. prune_backups: Retention spec (e.g. 'keep-last=3,keep-daily=7,keep-weekly=4'). dry_run: If True, only simulate (default True for safety).
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": {
"node": "<node>",
"storage": "<storage>"
},
"name": "prune_storage_backups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| type | No | ||
| vmid | No | ||
| dry_run | No | ||
| storage | Yes | ||
| prune_backups | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |