aix backup prune

aix backup prune

Remove old backups

Synopsis

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]

Examples

  # 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

Options

  -h, --help       help for prune
      --keep int   Number of backups to retain per platform (default 5)

Options inherited from parent commands

      --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)

SEE ALSO

Auto generated by spf13/cobra on 24-Jan-2026