title: Cleaning old snapshots from hosted snapshots repository in nexus 3.4
body: <p>I am trying to get rid of a huge amount of old snapshots in our nexus repository. First try was to setup a <code>Remove snapshots from Maven repository</code> task in nexus to keep one snapshot and purge things older than 30 days. But from the logs: </p>
  
  <pre><code>RemoveSnapshotsTask - Executing removal of snapshots on repository: RepositoryImpl$$EnhancerByGuice$$afd74251{type=hosted, format=maven2, name='snapshots'}
  RemoveSnapshotsFacetImpl - Removing snapshots on repository snapshots with configuration: org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsConfig(1, 30, true, 14)
  RemoveSnapshotsFacetImpl - Processing 5541 GAVs found with more than minimum 1 snapshot versions
  RemoveSnapshotsFacetImpl - Finished processing snapshots with more than 1 versions created before 2017-06-20T06:43:02.135Z
  RemoveSnapshotsFacetImpl - Deleted 0 components from 0 distinct GAVs
  RemoveSnapshotsFacetImpl - Processing 0 GAVs found that have already been released and for which the grace period has elapsed
  RemoveSnapshotsFacetImpl - Finished processing snapshots with associated releases
  RemoveSnapshotsFacetImpl - Updating metadata on repository: snapshots
  </code></pre>
  
  <p>That did not remove a single snapshot at all. But there are many snapshots 17.5.106-20161103.155102-1 to 17.5.251-20170718.203928-1 and most of them older than 30 days. </p>
  
  <p>How to get rid of those?</p>
  
  <p>Of course I could delete the repository and recreate it from time to time - but automated cleanups would be much nicer. </p>