# Cleanup Policy Enhancements

**URL:** <https://community.sonatype.com/t/cleanup-policy-enhancements/16607>\
**Category:** Sonatype Nexus Repository\
**Created:** [September 3, 2026, 9:45am UTC](https://community.sonatype.com/t/cleanup-policy-enhancements/16607 "2026-09-03T09:45:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![impkos](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@impkos](https://community.sonatype.com/u/impkos)\
**Post date:** [September 3, 2026, 9:45am UTC](https://community.sonatype.com/t/cleanup-policy-enhancements/16607/1 "2026-09-03T09:45:19Z")

</div>

> **[Sonatype Nexus Repository 3.95.0 – 3.95.3 Release Notes](https://help.sonatype.com/en/sonatype-nexus-repository-3-95-0-release-notes.html)**

Nexus Repository provides more flexible cleanup policy management to help control repository growth across a wider range of package formats. The _Retain last N versions_ capability is now available for all versioned repository formats that support version semantics. For the newly supported formats, this capability is available exclusively in the Nexus One User Interface. Supported formats include:

I currently have Nexus version 3.96.0 and I still don’t see a purge policy with “Retain last N.” Versions only have daily purge policies. Both the old and new Nexus One UI versions don’t have “Retain last N.”

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [September 3, 2026, 3:37pm UTC](https://community.sonatype.com/t/cleanup-policy-enhancements/16607/2 "2026-09-03T15:37:51Z")

</div>

For retain-n policy your instance must be both Pro licensed, and using a PostgreSQL database:

> **[Releases - Cleanup Policies](https://help.sonatype.com/en/cleanup-policies.html#retain-select-versions)**
>
> The table below lists the available cleanup criteria and the formats to which they apply:

If you meet both those requirements and are still having issues you could have your support contact file a ticket.
