Configure deployments expiration for an environment
The Deployments Expiration policy enables you to automatically delete stale deployments that pass an expiration period and keep environments clean. The policy can be enabled per environment and applies to the deployments it contains.
The expiration period count starts from the last update made to the deployment, so as long as you're updating the deployment, it keeps living.
Important: When you set an expiration period on an environment, all existing deployments in that environment are evaluated for expiration and deleted if they fit the criteria. Verify your intent and that you are working on the correct environment before you apply this setting.
Enable deployments expiration
- Go to Environments and click on the environment you want to enable deployments expiration for.
- Click on the Settings tab.
- Set the expiration period in Delete Deployments After.
- Click Save Changes
Disable deployments expiration
- Go to Environments and click on the environment you want to disable deployments expiration for.
- Click on the Settings tab.
- Set Delete Deployments After period to 0.
- Click Save Changes