Skip to content

Instantly share code, notes, and snippets.

View lreading's full-sized avatar

Leo lreading

View GitHub Profile
@lreading
lreading / README.md
Last active April 12, 2026 02:55
Removing All Deployments From a GH Repository

Nuke GitHub Deployments

Have you ever experimented with GitHub Pages or some other "deployments" in your repo only to change course later? Have you ever furiously searched for a way to remove old deployments from your repo's meticulously crafted page?

...yeah, me too. =/

GitHub doesn't expose a UI for this, at least at the time of writing. The only supported way of removing the "Deployments" widget from your repo is by removing all deployments through the API.