10
votes

I want to delete artifacts in artifactory.I googled and found this link https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API

Here the Delete build,using REST API,is what we are going for at the moment.Can any one give me a general idea how the command should look using curl command.Also in buildname what do i need to specify?

1

1 Answers

15
votes

For deleting a single artifact or folder you should use the Delete Item API, for example

curl -uadmin:password -XDELETE http://localhost:8080/artifactory/libs-release-local/ch/qos/logback/logback-classic/0.9.9

Notice that you will need a user with delete permissions.
If all goes well you should expect a response with a 204 status and no content.

The delete API is intended for deleting build information and is relevant if you are using the Artifactory build integration.