mfinelli/Cloudflare Pages Deployments Cleanup

Deletes old Cloudflare Pages deployments with min/max retention, age threshold, and dry-run reporting.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
cloudflare_account_idCloudflare account IDyes
cloudflare_api_tokenCloudflare API token with Pages Read+Edit permissionsyes
projectCloudflare Pages project nameyes
environmentWhich environments to clean (all|production|preview)noall
min-to-keepMinimum number of deployments to always retain per environmentno5
max-to-keepMaximum number of recent deployments to retain per environment (≥ minToKeep)no10
only-older-than-daysOnly delete deployments older than this many daysno
dry_runIf true, do not delete; only reportnofalse
max-deletes-per-runSafety cap on number of deletions per runno50
fail_on_errorIf true, any deletion failure will fail the jobnotrue
emit_report_artifactIf true, upload report.json as an artifactnotrue
emit_step_summaryIf true, write a GitHub step summarynotrue
namedescription
consideredCountTotal deployments considered (after protections)
deletedCountNumber of deployments deleted this run
keptCountNumber of deployments kept this run
deletedIdsCSV of deleted deployment IDs