Kivi
Kivi

Reputation: 535

Delete artifacts which are not downloaded for 6 months

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?

Upvotes: 2

Views: 1303

Answers (2)

Muhammed Kashif
Muhammed Kashif

Reputation: 1511

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.

Upvotes: 2

Prostagma
Prostagma

Reputation: 1851

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.

Upvotes: 2

Related Questions