How to set up Cleanup Policies? - Sonatype Nexus Repository - Sonatype Community

How to set up Cleanup Policies?

post by 1445499792 on Aug 25, 2025

I need to set up a cleanup policy for Maven Snapshots: I want to clean up those older than 10 days but must retain the latest one.

I set Component Ageto 10, and it did clean up those older than 10 days, but it also deleted the only remaining one, which is not what I want. I need to ensure that the latest one is always retained, no matter what.

post by mpiggott on Aug 25, 2025

You might want to use the Maven Snapshot Remover as opposed to cleanup - Maven SNAPSHOT Tasks

post by 1445499792 on Aug 28, 2025

This is what I want, thank you

New & Unread Topics

Topic Replies Views Activity
Redhat registry error 6 432 Aug 2025
Cannot create Maven - Delete SNAPSHOT Task 2 79 Sep 2025
Inquiry Regarding Supported Databases for the Read-Only API 0 42 Jan 20
how to configure docker registry path based routing in registries.conf 0 431 Sep 2025
VIP is not working when upgrading from Nexus 3.61 to 3.69 0 66 Feb 18