{"id":15715595,"url":"https://github.com/jamaluddinrumi/delete-all-deployments","last_synced_at":"2026-05-15T22:37:31.663Z","repository":{"id":254002349,"uuid":"845188506","full_name":"jamaluddinrumi/delete-all-deployments","owner":"jamaluddinrumi","description":"Delete all inactive Cloudflare Pages deployments","archived":false,"fork":false,"pushed_at":"2025-04-24T13:39:34.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-23T16:58:35.373Z","etag":null,"topics":["cloudflare","cloudflare-pages"],"latest_commit_sha":null,"homepage":"https://developers.cloudflare.com/pages/platform/known-issues/#delete-a-project-with-a-high-number-of-deployments","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamaluddinrumi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-20T18:54:00.000Z","updated_at":"2025-06-13T08:43:46.000Z","dependencies_parsed_at":"2024-08-20T21:09:39.774Z","dependency_job_id":"2f1967db-6015-41ea-89da-8548038a9ee3","html_url":"https://github.com/jamaluddinrumi/delete-all-deployments","commit_stats":null,"previous_names":["jamaluddinrumi/delete-all-deployments"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jamaluddinrumi/delete-all-deployments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamaluddinrumi%2Fdelete-all-deployments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamaluddinrumi%2Fdelete-all-deployments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamaluddinrumi%2Fdelete-all-deployments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamaluddinrumi%2Fdelete-all-deployments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamaluddinrumi","download_url":"https://codeload.github.com/jamaluddinrumi/delete-all-deployments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamaluddinrumi%2Fdelete-all-deployments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-pages"],"created_at":"2024-10-03T21:42:05.102Z","updated_at":"2026-05-15T22:37:31.646Z","avatar_url":"https://github.com/jamaluddinrumi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deletes all deployments given a Pages project name\n\n## How to\n\n### 1. Install dependencies\n\n`bun install`\n\n### 2. Delete all deployments except for the live production deployment (excluding aliased deployments)\n\n```env\n# .env\n\nCF_API_TOKEN=xxx\nCF_ACCOUNT_ID=xxx\n\n# Delete all deployments except for the live production deployment\n# (INCLUDING aliased deployments, eg. my-branch.exampleproj.pages.dev)\n# CF_DELETE_ALIASED_DEPLOYMENTS=true\n```\n\n### 3. run `start` script\n\n`bun run start \u003cproject-name\u003e`\n\n## How it works\n\nThis script uses the Cloudflare API to list all deployments for a given Pages project, then deletes all but the live production deployment.\n\nIt uses [exponential-backoff](https://www.npmjs.com/package/exponential-backoff) to retry failed requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamaluddinrumi%2Fdelete-all-deployments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamaluddinrumi%2Fdelete-all-deployments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamaluddinrumi%2Fdelete-all-deployments/lists"}