Is there a way to delete GAVs through a REST API in Nexus 3? From various google searches it appears that this capability existed in Nexus 2, but not in Nexus 3 yet. Is that true?
I tried the following with my current Nexus installation, which is OSS 3.2.1-01:
I was trying to delete GAV:
groupId = org.mycompany.myproject
artifactId = myartifact
version = 1.0.0
$ curl --request DELETE --user "USERNAME:PASSWORD" --write-out '%{http_code}\n' http://my-server:8081/service/local/repositories/my-repo/content/org.mycompany.myproject/myartifact/1.0.0
This gave me a 405.
I also looked at the release notes for 3.3 through 3.5 and nothing jumped out that REST API support was added.
I also looked into https://help.sonatype.com/display/NXRM3/REST+and+Integration+API. I downloaded the nexus-book-examples and downloaded several of the Javadocs (nexus-core, nexus-repository, nexus-common, nexus-script, nexus-commands, nexus-selector) for version 3.2.1-01 and started to look through the code. It was not clear where to start with a simple program to delete GAVs.
Am I correct that you cannot delete GAVs through the REST API in Nexus 3? Is there a plan to support this in a future Nexus 3 release? Is there a way to do what I want to do by creating a Groovy script using the code referenced by the REST+and+Integration+API link above? Is there some sample code which will help bootstrap me to using the above code (either 3.2.1-01, or a newer version of Nexus).
Thanks.