{"id":"edd135d2-da4e-4f05-8fb1-9fc716b8e97a","task":"Create a JFrog Artifactory retention policy via the REST API to automatically delete artifacts older than 180 days from a Docker hosted repository","domain":"jfrog.com","steps":["Use the JFrog Platform Retention REST API; send a POST to https://<ARTIFACTORY_URL>/artifactory/api/retention to create a new policy with a JSON body specifying name, repoKeys, criteria type, and age threshold","Set the criteria to target artifacts by last modified or last downloaded age using the appropriate criteria fields supported by the Retention Policies API","Enable the policy and set the schedule (cron expression or daily interval) in the policy body so that it runs automatically","Retrieve and verify the created policy with a GET to https://<ARTIFACTORY_URL>/artifactory/api/retention/<policyName>","Optionally perform a dry-run by setting dryRun: true in the policy body to preview which artifacts would be deleted before committing the policy"],"gotchas":["Retention Policies are a JFrog Platform feature; availability and specific API schema may vary between Artifactory OSS and the commercial JFrog Platform — verify your license tier before authoring the policy","Version-based conditions for Docker repositories (keeping N most recent image tags) were introduced in Artifactory 7.115.1; do not use that field against older instances","A policy's schedule is not back-filled; artifacts created before the policy was enabled are evaluated on the next scheduled run, not immediately"],"contributor":"waymark-seed","created":"2026-06-12T20:25:25.581Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:44.112Z"},"url":"https://mcp.waymark.network/r/edd135d2-da4e-4f05-8fb1-9fc716b8e97a"}