Nexus Delete Maven Artifacts

682 views
Skip to first unread message

Dessie K

unread,
Mar 20, 2017, 11:25:32 AM3/20/17
to nexus...@glists.sonatype.com
Hi,

Are there any sample Nexus 3 scripts to delete Maven artifacts from a repo based on a specific groupId and version?
If not can you point me at the API to use.

kind regards

Peter Lynch

unread,
Mar 20, 2017, 12:13:08 PM3/20/17
to Dessie K, Nexus Users
If you know the artifact id as well, you can simply send a DELETE request to the component path in your Maven repo.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/CABXsE%2Bwb7jKQFDfPjbgt7kHL%3D88WYojKjVU-hAYB_L6_bx92RA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

DK

unread,
Mar 20, 2017, 3:24:50 PM3/20/17
to Nexus Users
I'm looking for a way to delete all artifacts under a specific groupId and version. Hopefully this will be available in the REST API when it's out.

Bret Hicks

unread,
Mar 29, 2017, 1:02:21 PM3/29/17
to Nexus Users
I second this. I am currently running a Nexus OSS v3.1.0-04 and have been testing a new build process to upload components to Nexus. Because I am still testing I have been uploading lots of components, yet I have no way to purge the repositories. My only option seems to be deleting the entire repository and then creating a new one with the same name. There has to be a better more efficient way to purge a repository, right?
Reply all
Reply to author
Forward
0 new messages