How to set up Cleanup Policies?

  • Version: Sonatype Nexus Repository OSS 3.67.1-01
  • Deployment Method: Docker
    
    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.

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

1 Like

This is what I want, thank you