borg prune --keep-daily 7 --keep-weekly 4 --keep-monthly 6 /backup/repo
Delete archives outside a retention policy
Removes archives that fall outside keeping 7 daily, 4 weekly and 6 monthly backups, based on archive timestamps. Disk space is only reclaimed by the follow-up borg compact, which is a normal part of the workflow. Prune never touches the newest archives.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.