Component version cleanup
Component versions are automatically cleaned up, or deleted, based on rules that you define in the administration timeline.
By default, the cleanup runs every 24 hours. For details on how to create your own cleanup schedules, see Schedule version cleanup.
Set the following parameters for keeping versions:
Days to Keep Versions. Number of days to keep versions after they are created.
Example: A version was created on July 1. If Days to Keep Version is set to 30 days, this version is kept at least until July 30.
- Number of Versions to Keep. Number of versions for the current component, ordered in reverse order, to keep. After a new version is created and cleanup is started, the oldest version is candidate for removing.
There are multiple levels at which the parameters may be set. They are evaluated in ascending order of priority.
- System level. Settings for those parameters can be found in System Settings. Allowed values for both of the parameters are “-1” or “integer greater than 0”.
- Component level. Settings for those parameters can be found when you edit a component. To enable them you should clear the Inherit Cleanup Settings checkbox. Allowed values for both of the parameters are “-1”, “0”, or “integer greater than 0”.
- Environment level. Settings for those parameters can be found when you edit an environment at the application level. To enable them you should uncheck the Inherit Cleanup Settings checkbox. Allowed values for both of the parameters are “-1”, “0”, or “integer greater than 0”.
Environment and component level settings are deselected by default for each component and environment.
The cleanup procedure starts with retrieving all components from the database and looping through their versions in descending order.
Every version is evaluated as follows:
What values of Days to Keep Versions and Number of Versions to Keep should be used for this version?
Sequentially check this version against the set of rules. If a rule indicates the version should be kept, the version is not deleted.