Deleting artifacts older than 2 years from local nexus repository

Jon Freedman picture Jon Freedman · Jul 17, 2012 · Viewed 15.1k times · Source

We're running nexus on some old hardware which is limited in disk space and would like to remove artifacts older than a certain threshold.

Is there any way to do this other than a combination of find and curl?

Answer

Mark O'Connor picture Mark O'Connor · Jul 17, 2012

There is a scheduled task that can automatically remove old snapshot releases:

Unfortunately, this does not work for hosted release repositories.