Nexus cleanup policy based on number of artifacts

I am using NXRM 3.29.0. I have configured a clean-up policy such that artifacts are deleted after 30 days (Published Before). That works fine and deletion works. I am wondering if it is possible to somehow configure such that at least one last version is always retained irrespective of the number of days.

e.g. uploaded 5 versions of an artifact to repository. Configured 30 days policy. On day 31, all 5 versions will be removed. What I am looking for is that even after day 30, at least one last version should remain as that was the last known version available for that artifact.

Is this possible ?

Hi Rich,

It looks like there is an open ticket for this here that can be monitored: https://issues.sonatype.org/browse/NEXUS-10821

Thanks for your post!

Maura

Thanks @mharwood