Bulk Delete GitHub Actions Workflow Runs
GitHub Actions accumulates workflow run history quickly. After a few months of active development, a busy repository can have thousands of runs: every push, every pull request, every scheduled job. Most of those runs are no longer useful, but the GitHub web interface only lets you delete one run at a time. If you want to clean up a large backlog, you need a different approach.
This post covers a one-liner that bulk-deletes all workflow runs for a repository using the GitHub CLI (gh) and jq.