sincecutoff.com
← all changes

wrangler pages deployment delete command

Introduced 2026-02-10 · score 0.98

HOW TO USE IT

When deleting a Pages deployment, run the delete command with its deployment ID and project name; add `--force` (or `-f`) to skip confirmation in CI/CD.

npx wrangler pages deployment delete <DEPLOYMENT-ID> --project-name <PROJECT-NAME>
npx wrangler pages deployment delete <DEPLOYMENT-ID> --project-name <PROJECT-NAME> --force

WHY THIS HELPS

Delete a Pages deployment from a project, including from a CI/CD workflow when confirmation should be skipped.

REQUIREMENTS AND LIMITATIONS

  • Version: 4.64.0
  • <DEPLOYMENT-ID> (required): ID of the deployment to delete.
  • --project-name <PROJECT-NAME>: Name of the project the deployment belongs to.
  • --force / -f: Release note says it skips confirmation; current command docs say it deletes even if the deployment has an active alias. The docs do not say these effects are mutually exclusive.
  • Docs conflict: Current docs additionally describe --force as allowing deletion of deployments with active aliases; this behavior is not stated in the Wrangler 4.64.0 release note.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card