Nexus Repository 3 - Groovy Script To List Or Delete Assets Based On RegEx

How do I use it?

groovy script to list or delete assets based on regular expression

Deploy scripts

provision.sh -h https://repository.host.com -u admin -p ****

Call script

List assets

curl -v -X POST -u admin:******
–header “Content-Type: text/plain”
-d “{“repoName”: “raw-static-content”, “assetName”: “^prefix/.*”}”
https://repository.host.com/service/siesta/rest/v1/script/listAssets/run

Delete assets

curl -v -X POST -u admin:******
–header “Content-Type: text/plain”
-d “{“repoName”: “raw-static-content”, “assetName”: “^prefix/.*”}”
https://repository.host.com/service/siesta/rest/v1/script/deleteAssets/run

Where do I get this?

Who can I contact about it?
COMPANY: Michal Hlaváč

CONTACT: miso@hlavki.eu