Remove old realses

Hi there!
We’re using Nexus ver - 2.14.8-01.
Right now, we’r having too much data in our

/nexus/content/repositories/releases/

folder.
Inside this folder, we have sub folders with service/project names , and their version - like this for example

/content/repositories/releases/de/<company_name>/api/billrun-api/1.0.1590416100/

And inside each version folder, there are several .pom files of course.

We want to keep only 10 last releases. That means, 10 last version folders.

If we don’t want to use any script, and want to use Nexus Dashboard , the correct way for it would be to create a task of “Remove Releases from Repository”?
And if so, I guess it should be :

Repository: Releases
Number to keep: 10
Repository target: All(Maven2)

Thanks in advance!
Aleksei

You may be looking for the Remove Releases from Repository scheduled task, described in the docs.