None
NO
Deleting All Workflow Runs In GitHub Repository With PowerShell
['Den Delimarsky']
Hi, I'm Den 👋 on Den Delimarsky
Please install it from https://cli.github.com/" -ForegroundColor Red exit 1 } if ( -not $Owner -or -not $Repo ) { Write-Host "Usage: .\run.ps1 -Owner <GitHub-Owner> -Repo <GitHub-Repo>" -ForegroundColor Yellow exit 1 } $workflowRuns = gh api repos / $Owner / $Repo / actions / runs - -paginate - -jq '.workflow_runs[].id' foreach ( $runId in $workflowRuns ) { Write-Host "Deleting workflow run ID: $runId " gh api repos / $Owner / $Repo / actions / runs / $runId -X DELETE } Write-Host "All workflow runs have been deleted." Great question with a somewhat unsatisfying answer - the GitHub API today doesn’t support batched deletion of workflow runs, so we kind of need to issue those requests individually. Running the script to delete the workflow runs in a GitHub repository.