pierskarsenbarg/Clean Cloudflare Pages Deployments

Deletes old Cloudflare Pages deployments based on count or age

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
api-tokenCloudflare API token. Falls back to CLOUDFLARE_API_TOKEN environment variable.no
account-idCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID environment variable.no
project-nameName of the Cloudflare Pages project.yes
keep-deploymentsNumber of most recent deployments to keep. Cannot be used with keep-days. Exactly one of keep-deployments or keep-days must be set. no
keep-daysDelete deployments older than this many days. Cannot be used with keep-deployments. Exactly one of keep-deployments or keep-days must be set. no
environmentWhich deployments to target: "preview", "production", or "all". Defaults to "preview".nopreview
dry-runIf "true", log what would be deleted without actually deleting anything.nofalse
namedescription
deleted-countNumber of deployments deleted (0 in dry-run mode).