Free Pack
Download BuildMaster Free Trial

Tidy Up ProGet with Retention Rules

by Olivia Glenn-Han, on Jul 9, 2020 6:08:47 AM

Running out of disk space on a server creates all sorts of hard-to-diagnose problems at unexpected (and usually inconvenient) times. Define retention rules to keep ProGet tidy and disk space conserved by removing old or unused packages.

What Are Retention Rules?

"Retention rules" refer to any parameter you set define what should and shouldn't be kept. There are a number of conditions that might govern a retention rule, like "dump X when when disk space runs low" or "delete packages over Y days old." This automates an otherwise manual process to "spring clean" your disk. Not only does this save disk space, it also saves developer time (and therefore organizational money) through automation.

Retention Rules in ProGet

Retention rules are configurable in all versions of ProGet, but they will only execute in paid versions of ProGet. In ProGet Free, configured retention rules will execute only in dry-run mode.

Retention rules are configured at the feed level (not globally) and can be configured for packages, containers, and/or assets (although these rules trigger differently) or by quotas. ProGet also supports use of a wildcard (*) to define more expansive retention rules. ProGet offers a variety of retention rule configurations so you can define rules that meet your needs for each feed. When a rule consists of multiple delete actions, only packages, containers, and assets that meet all criteria may be deleted. You can also configure more than one rule per feed, which run in the order they appear (from top to bottom) in the ProGet UI.

Configuring Retention Rules

Navigate to the Manage Feed page for your feed, and select the "Storage & Retention" tab:


From there, you can add retention rules to meet your organization's needs for that feed:


Note that, when a feed has multiple rules applied to it, rules run from first-configured to last, one at a time, and if you set a quota rule that wasn't met, it's possible not all rules will run if space if enough free space exists.

Get Cleaning!

Retention rules are just one of the features that help you use ProGet better. Consider re-scoping user privileges,  reassess vulnerabilities, and review restricted licenses to keep your ProGet in tip-top shape. Anyone may request and instantly receive a 30-day free trial of ProGet Basic (no credit card required) through MyInedo to give these retention rules and other paid features a try.

Topics:ProGetPackage Manager

Related Posts

About Inedo

Inedo is a software product company bringing you the "tech behind the tech."

Makers of Windows-first, enterprise DevOps tools BuildMaster CI/CD, ProGet private package management, and Otter IaC. Maximize developer time, minimize release risk, and empower stakeholders to bring their vision to life faster, all with the people and technology you have right now.

Follow us on social media

Follow Inedo on YouTube Follow Inedo on Facebook Follow Inedo Twitter New call-to-action

Free e-books

Free PowerShell Book NuGet for the Enterprise Guide Jenkins CICD Guide Free CICD Book Free dotnet book free IaC book