jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
538 stars 236 forks source link

purge artifacts from specific repo #2435

Open aroellig opened 9 months ago

aroellig commented 9 months ago

Would like to be able to add a repository tag to the jf rt bdi this way it would only purge artifacts from a specific repository

Describe the solution you'd like to see Would like the option to be able to add a repository tag to the jf rt bdi command

Describe alternatives you've considered Using other artifact cleanup methods such as the plugin

Additional context Add any other context or screenshots about the feature request here.

yahavi commented 9 months ago

@aroellig, This command relies on the build retention Artifactory REST API, meaning the JFrog CLI has its limitations.

If it helps, you can immediately delete build artifacts solely from a particular repository, you might want to consider something along these lines:

jf rt del repo-name/ --build build-name/build-number