capabilities.work

AQL Find and Delete Artifact

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

Recipe · 2 steps

AQL Find and Delete Artifact

Find artifacts via AQL and delete the first match when one exists.

  1. Execute the AQL query to locate candidate artifacts for deletion.
  2. Delete the first matching artifact using the repository and path returned by the AQL query.
What you'll need to have ready
  • accessToken: Bearer access token for authenticating with Artifactory.
  • aqlQuery: The AQL query string to execute (e.g. items.find({"repo":"libs-release-local","name":{"$match":"*.tmp"}})).
For your developer

Arazzo workflow artifactory:aql-find-and-delete-artifact, 2 operations: executeAqlQuery → deleteArtifact. Specs on APIs.io.