Overview
Backup Cleanup
Automatically remove older backup files while preserving the most recent backups according to your project's retention policy.
custy cleanup backupsCategory
Quick Command
custy cleanup backupsOverviewâ
Backup Cleanup removes obsolete backup files created by Custy while preserving the most recent backups according to your configured retention policy.
This helps keep backup directories organized and prevents them from growing indefinitely during regular development.
Unlike Branch Cleanup, this operation affects only backup files and does not modify your Git repository.
What Backup Cleanup Does
Responsibilities
Find Backup Files
Apply Retention Policy
Remove Old Backups
Keep Workspace Organized
Backup Cleanup

Workflow Integration
Backup Cleanup can be executed directly whenever you want to clean backup directories.
It is also integrated into several Custy workflow pipelines, allowing backup maintenance to occur automatically after backup operations without requiring additional manual steps.
When Should You Use It?
Backup Cleanup is recommended when:
- Backup directories contain many historical backup files.
- You want to reclaim disk space.
- You want to keep only the most recent backups.
- You perform frequent backup operations during development.
In many workflows, Backup Cleanup is executed automatically, so manual execution is only necessary when you want to clean backup directories on demand.