Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting artifacts in artifactory

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?

like image 889
Franklin Avatar asked Mar 01 '16 12:03

Franklin


People also ask

How do I remove an artifact from github?

Under your repository name, click Actions. In the left sidebar, click the workflow you want to see. From the list of workflow runs, click the name of the run to see the workflow run summary. Under Artifacts, click next to the artifact you want to remove.


1 Answers

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.

like image 62
Dror Bereznitsky Avatar answered Sep 21 '22 14:09

Dror Bereznitsky