N R
N R

Reputation: 3

Jfrog Artifactory Garbage Collection

How can we programmatically trigger Garbage Collection on JFrog Artifactory? We see it is set a background task of artifactory. Couldn't find its API in their REST API documentation.

~NR

Upvotes: 0

Views: 1029

Answers (2)

Manohar Reddy
Manohar Reddy

Reputation: 21

curl -u admin:***** -k -v -X POST -H "Content-Type: text/plain" https://artifactoryfqdn/artifactory/api/system/storage/gc

Upvotes: 0

danf
danf

Reputation: 2709

Not sure why its undocumented (will take care of that) but you can trigger gc manually with:

POST /api/system/storage/gc

Upvotes: 5

Related Questions