title: How to delete GAVs in Nexus 3 through Nexus REST API
body: <p>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.  <strong>Is that true?</strong></p>
  
  <p>I tried the following with my current Nexus installation, which is OSS 3.2.1-01:</p>
  
  <p>I was trying to delete GAV:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>This gave me a 405.</p>
  
  <p>I also looked at the release notes for 3.3 through 3.5 and nothing jumped out
  that REST API support was added.</p>
  
  <p>I also looked into
  <a href="https://help.sonatype.com/display/NXRM3/REST+and+Integration+API" rel="nofollow noreferrer">https://help.sonatype.com/display/NXRM3/REST+and+Integration+API</a>.  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.</p>
  
  <p>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).</p>
  
  <p>Thanks.</p>