# Customized clean-up policy

**URL:** <https://community.sonatype.com/t/customized-clean-up-policy/12117>\
**Category:** Sonatype Nexus Repository\
**Tags:** help, nexus-repository, api, cleanup\
**Created:** [February 19, 2024, 12:22pm UTC](https://community.sonatype.com/t/customized-clean-up-policy/12117 "2024-02-19T12:22:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mprescott](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mprescott/32/178_2.png) [@mprescott](https://community.sonatype.com/u/mprescott)\
**Post date:** [February 20, 2024, 12:10am UTC](https://community.sonatype.com/t/customized-clean-up-policy/12117/2 "2024-02-20T00:10:45Z")

</div>

This is possible with Nexus Pro, for maven and Docker. You can retain the n most recent versions and allow the others to be cleaned up. Which format(s) are you needing this for?

---

_[View the full topic](https://community.sonatype.com/t/customized-clean-up-policy/12117)._
