Do you set retention policy?
  v1.0 Posted at 30/05/2016 4:49 PM by Danijel Malik

Octopus Deploy will by default keep all packages (NuGet, ZIP, …) as well as files deployed on all Tentacles. Because of that your hard drive will fill up very fast as you keep pushing in more packages and creating more releases, especially if you are using Continuous Integration and pushing out new packages with every commit to a repository.

That's why you need to set up a retention policy. Octopus Deploy supports two options:
  • Retention policy for packages
  • Retention policy for deployments (via Lifecycle phases)
You should set up both.

Package Policy​

​Bad Example - Retention policy is set to Keep forever​​



​Good Example - Retention policy is set to a number of days​

Lifecycle Policy


Bad Example - Lifecycle's retention policy is set to Keep all​



​Good Example - Lifecycle's retention policy is set to 3 Releases

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:


    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.