To delete a specific artifact, use the following command:
curl --request DELETE --user "login:password" http://myNexus/service/local/repositories/myRepository/content/myGroupId/myArtifactId/myVersion/myArtifactId-myVersion.jar
Then you need to ask nexus to rebuild the metadata for gav (otherwise the * .md5 and * .sha1 files will remain in your repository)
curl -v --request DELETE --user "login:password" --silent http://nexusHost/service/local/metadata/repositories/myRepository/content
source share