Cleaning up snapshots
You can configure the server to reduce the number of snapshots by deleting old snapshots. You can specify global cleanup settings and cleanup settings for specific environments.
When cleaning up snapshots, the server retrieves the settings from the
options first. Then it retrieves the settings for individual environments, which override the system settings. If any of these settings specify to keep the snapshot, it is not deleted.The settings for snapshot cleanup specify a number of days to keep snapshots. This time period is measured from the day that the snapshot is no longer the most recently deployed snapshot in an environment. For example, assume that the Default Application Snapshot Retention (days) system setting is set to 30 days. If a snapshot is deployed on day 1 and another snapshot is deployed on day 10, the first snapshot can not be cleaned up until day 40.
The system setting also refers to the number of days since the snapshot was created. If a snapshot was created fewer days ago than the Default Application Snapshot Retention (days) system setting, it is kept.
- If the snapshot is the most recently deployed snapshot in any environment, it is kept.
- In any environment, if the snapshot was the most recently deployed snapshot within the number of days in the system setting or the environment setting, it is kept.
- If the snapshot age in days is less than the system setting, it is kept.