Skip to content

How To: iteratively delete GH workflow runs: #184

@aspauldingcode

Description

@aspauldingcode

I can remove the last 100 runs with gh cli:

gh run list --limit 100 --json databaseId --jq '.[].databaseId' | while read run_id; do echo "Deleting run $run_id..."; gh run delete "$run_id" 2>/dev/null && echo "✓ Deleted" || echo "✗ Failed"; done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions