
blog.oddbit.com/post/2022-09-22-delete-workflow-runs
Preview meta tags from the blog.oddbit.com website.
Linked Hostnames
5- 8 links toblog.oddbit.com
- 3 links togithub.com
- 1 link tohachyderm.io
- 1 link tooddbit.com
- 1 link totwitter.com
Thumbnail

Search Engine Appearance
Delete GitHub workflow runs using the gh cli
Hello, future me. This is for you next time you want to do this. When setting up the CI for a project I will sometimes end up with a tremendous clutter of workflow runs. Sometimes they have embarrassing mistakes. Who wants to show that to people? I was trying to figure out how to bulk delete workflow runs from the CLI, and I came up with something that works: gh run list --json databaseId -q '.[].databaseId' | xargs -IID gh api \ "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" \ -X DELETE This will delete all (well, up to 20, or whatever you set in --limit) your workflow runs. You can add flags to gh run list to filter runs by workflow or by triggering user.
Bing
Delete GitHub workflow runs using the gh cli
Hello, future me. This is for you next time you want to do this. When setting up the CI for a project I will sometimes end up with a tremendous clutter of workflow runs. Sometimes they have embarrassing mistakes. Who wants to show that to people? I was trying to figure out how to bulk delete workflow runs from the CLI, and I came up with something that works: gh run list --json databaseId -q '.[].databaseId' | xargs -IID gh api \ "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" \ -X DELETE This will delete all (well, up to 20, or whatever you set in --limit) your workflow runs. You can add flags to gh run list to filter runs by workflow or by triggering user.
DuckDuckGo

Delete GitHub workflow runs using the gh cli
Hello, future me. This is for you next time you want to do this. When setting up the CI for a project I will sometimes end up with a tremendous clutter of workflow runs. Sometimes they have embarrassing mistakes. Who wants to show that to people? I was trying to figure out how to bulk delete workflow runs from the CLI, and I came up with something that works: gh run list --json databaseId -q '.[].databaseId' | xargs -IID gh api \ "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" \ -X DELETE This will delete all (well, up to 20, or whatever you set in --limit) your workflow runs. You can add flags to gh run list to filter runs by workflow or by triggering user.
General Meta Tags
8- titleDelete GitHub workflow runs using the gh cli :: blog.oddbit.com
- charsetutf-8
- viewportwidth=device-width,initial-scale=1
- descriptionHello, future me. This is for you next time you want to do this. When setting up the CI for a project I will sometimes end up with a tremendous clutter of workflow runs. Sometimes they have embarrassing mistakes. Who wants to show that to people? I was trying to figure out how to bulk delete workflow runs from the CLI, and I came up with something that works: gh run list --json databaseId -q '.[].databaseId' | xargs -IID gh api \ "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" \ -X DELETE This will delete all (well, up to 20, or whatever you set in --limit) your workflow runs. You can add flags to gh run list to filter runs by workflow or by triggering user.
- keywords
Open Graph Meta Tags
9- og:localeen
- og:typearticle
- og:titleDelete GitHub workflow runs using the gh cli
- og:descriptionHello, future me. This is for you next time you want to do this. When setting up the CI for a project I will sometimes end up with a tremendous clutter of workflow runs. Sometimes they have embarrassing mistakes. Who wants to show that to people? I was trying to figure out how to bulk delete workflow runs from the CLI, and I came up with something that works: gh run list --json databaseId -q '.[].databaseId' | xargs -IID gh api \ "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" \ -X DELETE This will delete all (well, up to 20, or whatever you set in --limit) your workflow runs. You can add flags to gh run list to filter runs by workflow or by triggering user.
- og:urlhttps://blog.oddbit.com/post/2022-09-22-delete-workflow-runs/
Twitter Meta Tags
1- twitter:cardsummary
Link Tags
5- apple-touch-iconhttps://blog.oddbit.com/img/theme-colors/orange.png
- canonicalhttps://blog.oddbit.com/post/2022-09-22-delete-workflow-runs/
- shortcut iconhttps://blog.oddbit.com/img/theme-colors/orange.png
- stylesheethttps://blog.oddbit.com/styles.css
- stylesheethttps://blog.oddbit.com/style.css
Links
14- https://blog.oddbit.com
- https://blog.oddbit.com/archive
- https://blog.oddbit.com/post/2022-09-22-delete-workflow-runs
- https://blog.oddbit.com/posts
- https://blog.oddbit.com/rss.xml