media_cleanup_backups
Permanently delete backups of original media files by age, attachment ID, or all at once. Frees storage, but cleaned images can no longer be restored.
Instructions
Delete backups of originals. DESTRUCTIVE: originals of cleaned images can no longer be restored. Needs exactly one scope: older_than_days (backups older than N days), ids (attachment ids, at most 500) or all: true (every backup). Returns { deleted, bytes, remaining, skipped }.
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": {
"site": "<site>"
},
"name": "media_cleanup_backups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Scope: true deletes every backup | |
| ids | No | Scope: attachment ids whose backups to delete, at most 500 | |
| site | Yes | Site id (see list_sites) | |
| older_than_days | No | Scope: delete backups older than this many days, 0..3650 |