Skip to content

Instantly share code, notes, and snippets.

View aryankaran's full-sized avatar
✈️
Passionate

Aryan Karan aryankaran

✈️
Passionate
  • Jupiter, Milky Way Galaxy
View GitHub Profile
@aryankaran
aryankaran / remove-all.md
Created September 30, 2022 05:41 — forked from retyui/remove-all.md
Simple way to remove all workflow runs in GitHub Actions:

Simple way to remove all workflow runs in Github Actions:

export user=NameOrOrgName
export repo=RepoName


gh api repos/$user/$repo/actions/runs --paginate -q '.workflow_runs[] | select(.workflow_id = 21456768) | "\(.id)"'  | xargs -n1 -I % gh api repos/$user/$repo/actions/runs/% -X DELETE