capabilities.work

Cleanup Stale Artifacts

A 2-step recipe with JFrog. We can help you get access.

Recipe · 2 steps

Cleanup Stale Artifacts

with JFrog

Find artifacts via AQL and delete the first matching item.

  1. Execute the AQL search to find candidate artifacts for cleanup.
  2. Delete the first matched artifact using its repository and path.
What you'll need to have ready
  • aql: The AQL query string (e.g. items.find({"repo":"my-repo","modified":{"$before":"30d"}})).
For your developer

Arazzo workflow jfrog:cleanup-stale-artifacts, 2 operations: executeAqlSearch → deleteArtifact. Specs on APIs.io.