restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6

Category: Backup & Restore

restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6

Remove old snapshots by retention policy

Deletes snapshots outside the policy: keep 7 daily, 4 weekly and 6 monthly backups. Data files are not removed yet, so run restic prune (or add --prune) to reclaim space. This is the safe way to age out old backups.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.