Syntax
Syntax
Learn how to remove obsolete backup files using Custy's Backup Cleanup command.
custy cleanup backupsCategory
Quick Command
custy cleanup backupsOverviewâ
Backup Cleanup removes obsolete backup files from your project's backup directories.
The command supports cleaning:
- commit message backups,
- tag message backups,
- or both.
The cleanup behavior is determined by command-line options and project configuration.
Basic Syntax
Command Syntax
Available command syntax and usage examples.
Backup Cleanup
Remove obsolete backup files using the configured cleanup settings.
custy cleanup backupsCleanup Targets
Depending on the selected cleanup type, Custy may remove:
- commit message backups,
- tag message backups,
- both backup categories.
The cleanup target can be selected explicitly or resolved from your project's configuration.
Global Options
Like every Custy command, Backup Cleanup supports the global CLI options.
Examples include:
Global options are always specified before the command name.
Exit Behavior
Backup Cleanup finishes after processing the configured backup directories.
Depending on the current project state, the command may:
- remove obsolete backup files,
- determine that no cleanup is necessary,
- report the cleanup summary.
Successful completion does not modify your Git repository.
What's Next?
Continue to the Options page to learn how cleanup targets and retention behavior can be customized for individual executions.