{
  "slug": "gh-cache-delete-can-delete-all-caches-for-a-ref-0332e9a5061d",
  "title": "gh cache delete can delete all caches for a ref",
  "tools": [
    "gh"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-21T18:07:43.000Z",
  "announced_at": "2026-01-21T18:07:43.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When deleting all GitHub Actions caches for a ref, run `gh cache delete --all --ref <ref>`; use a fully qualified branch or pull request ref.",
    "examples": [
      "gh cache delete --all --ref refs/heads/<branch-name>",
      "gh cache delete --all --ref refs/pull/<PR-number>/merge"
    ],
    "gotchas": [
      "Version: v2.86.0",
      "--all (required): Delete all caches; combine with `--ref` to target one ref.",
      "--ref <string> (required): Target a ref formatted as `refs/heads/<branch name>` or `refs/pull/<number>/merge`.",
      "Prerequisite: Deletion requires authorization with the `repo` scope."
    ]
  },
  "why_it_matters": "Delete all GitHub Actions caches associated with a ref.",
  "sources": [
    "https://github.com/cli/cli/releases/tag/v2.86.0",
    "https://cli.github.com/manual/gh_cache_delete"
  ],
  "rank": 0.98023,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3-rejudge+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-5cfc6c97b7d9274d-1:rescue",
    "evidence_hash": "33a8adebfd4d52f5cbdad56167bb03ec64cea2604d85ec4eb44a4c5afa642eae"
  },
  "review": {
    "draft_hash": "b5fc681d83f9fdeed69f4d7c7bc00f95ac23ff32bfebcb853e5a0509569c0b94",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:rescue",
    "reason": "Rescue path: first rejected only because the extracted card lacked usage; judged again on the enriched card, 3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
