# Cleanup policy in nexus-3.66

**URL:** <https://community.sonatype.com/t/cleanup-policy-in-nexus-3-66/14180>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [January 16, 2025, 2:10pm UTC](https://community.sonatype.com/t/cleanup-policy-in-nexus-3-66/14180 "2025-01-16T14:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rashmipriya78](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rashmipriya78](https://community.sonatype.com/u/rashmipriya78)\
**Post date:** [January 16, 2025, 2:10pm UTC](https://community.sonatype.com/t/cleanup-policy-in-nexus-3-66/14180/1 "2025-01-16T14:10:18Z")

</div>

Hi!

I want to setup a cleanup policy in nexus which we should keep the latest 2-3 versions **even** if the artifact has not been downloaded in the recent 180 days and for those applications which frequenctly keep uploading or downloading artifacts those components which are not being downloaded or are very old and unused should be deleted…something like this… Can we have such kind of customized cleanup policy in nexus if yes how can we do that?

Thanks for the help in advance.
