Artifactory cleanup - what is the right way to clean conan packages and docker images?

694 Views Asked by At

I'm working on an Artifactory Cleanup script. I wanted to know what is the right way to clean/delete Conan packages and Docker images. Should I use Conan/Docker CLI or can I simply delete the relevant folders from artifactory with JFrog CLI or rest? Using JFrog CLI will delete all relevant metadata as well?

Thanks!

didn't try anything yet. I'm asking here because I want to make my script as simple as possible and I don't want it to depend on external tools. Just on Artifactory/JFrog calls.

1

There are 1 best solutions below

2
shaibz On

There is a cleanup plugin out of the box provided by JFrog here. Of course, you can take it and change it per your requirements.

As for Docker, there is a proposed solution here. You can also use the CLi's, but if you want more complex logic, you may want to use the Artifactory Query Language, the above solutions both use this logic.