Created
October 13, 2021 04:16
-
-
Save michaelsanford/155db092767d5373ba8bce7ea98f4783 to your computer and use it in GitHub Desktop.
Batch Delete GitHub Workflow Runs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$user = "your user/org" | |
$repo = "repo" | |
(gh api repos/$user/$repo/actions/runs | ConvertFrom-Json).workflow_runs | | |
%{ $_.id } | | |
%{ gh api repos/$user/$repo/actions/runs/$_ -X DELETE } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment