Empty Folder Clean-up

Empty Folder Clean-up

AuthorFullName__c
JFrog Support
articleNumber
000001354
ft:sourceType
Salesforce
FirstPublishedDate
2016-10-06T13:35:40Z
lastModifiedDate
2024-03-10T07:48:20Z
VersionNumber
8

If you have an issue with empty folders remaining in your repositories, there’s an Artifactory plugin that will initialize the folder cleanup process manually. This will immediately remove empty folders within specified repositories. To install and use this plugin, you'll want to:

  • Have a look HERE, where we offer general information on installing and using Artifactory plugins. 

  • Download and install Apache Groovy v1.8+, which is a prerequisite to using JFrog plugins.

  • Get a hold of the deleteEmptyDirs.groovy plugin script available HERE and acquire:

  • Specific instructions for using this plugin (which can be found in the comments below executions). In particular:

  • We offer a cURL command example:

curl -X POST -v -u <username>:<password> "http://<Artifactory server-address>:<Artifactory-port>/artifactory/api/plugins/execute/deleteEmptyDirsPlugin?params=paths=<comma separated list of repositories to search>"

Note: Your empty folders will be removed regardless of whether or not properties have been set on them.