What is the difference between ‘Garbage Collector’ and ‘Prune Unreferenced Data’ processes in Artifactory?

Pradnya Shinde
2019-04-13 01:25


What is the difference between 'Garbage Collector' and 'Prune Unreferenced Data' processes in Artifactory?

Affected Versions



Both processes delete the binaries in the filestore.


  1. Garbage Collection disposes of the binaries from the filestore which are marked as "delete" candidates in the Artifactory. Along with the UI you also have an option to use this REST API for GC.  
  2. Prune Unreferenced Data(PUD) deletes the randomly existing binaries in the filestore which are not referenced in the Artifactory (in case for some reason the filestore had unreferenced binaries in the filestore). When you invoke this action, Artifactory removes unreferenced binary files and empty folders present in the filestore or cache folders. PUD does not delete the binaries marked as delete candidates in Artifactory(those would be deleted by GC). PUD doesn't have a REST API associated with it; considering this would be not very common scenario you can use the UI click option for PUD as a one-off task(Admin->Advanced->Maintenance->Storage->Prune Unreferenced Data).