Delete artifacts which are not downloaded for 6 months

974 views Asked by At

In JFrog Artifactory, I need to delete the artifacts which are not downloaded for a period of 6 months. I have gone through the JFrog repository. It is mentioned to run via REST API, but I am not pretty sure how to use it.

How can we implement this? or if there is some other way?

2

There are 2 answers

8
Muhammed Kashif On BEST ANSWER

I would recommend to refer to this user plugin, artifactCleanUp plugin can be used to delete artifacts which are not downloaded for certain days/months.

3
Prostagma On

The easiest way would be to use the delete command of the JFrog CLI.

The command accepts a file spec.

Write an AQL query with Relative Time Operators, and pass it in the aql field of the file spec.