Title here
Summary here
Remove old backups
Remove old backups beyond the retention count.
By default, keeps the 5 most recent backups per platform and removes older ones. Use the –keep flag to specify a different retention count.
By default, prunes backups for all detected platforms. Use the –platform flag to limit to specific platforms.
aix backup prune [flags] # Prune all platforms, keeping default (5) backups each
aix backup prune
# Keep only the 3 most recent backups
aix backup prune --keep 3
# Prune only Claude backups
aix backup prune --platform claude
# Remove all backups (keep 0)
aix backup prune --keep 0
See Also:
aix backup list - List available backups
aix backup create - Create a new backup -h, --help help for prune
--keep int Number of backups to retain per platform (default 5) --log-file string write logs to file in JSON format
--log-format string log format: text, json (default "text")
-p, --platform strings target platform(s): claude, opencode (default: all detected)
-q, --quiet suppress non-error output
-v, --verbose count increase verbosity level (e.g., -v, -vv)