Retention policy for nuget feed in number of versions


is it possible to add ability to remove packages after certain number of versions and not based on days.

For example I would like to keep 5 last versions in my nuget feed, doesn’t matter how old they are for certain package.

Octopus Version: 3.11.16

Hi Krzysztof,

Thanks for getting in touch! While we only have the ability to set days for our package retention policy, we never delete packages that have associated releases. So if your server retention policy is set to 5 versions, the associated packages will never be deleted.

If that is not exactly what you are after, and you would like to keep packages that aren’t associated with releases then we do have a UserVoice suggestion that you can add some votes and comments to that does not have much support:

The higher the support and votes the more chance the feature will be picked up.

Let me know if you have any questions or if I can help with anything else :slight_smile: