Delete a stale secret
secrets & env vars
// what it does
Removes a secret binding from the Worker — use it when rotating credentials or cleaning up a key you no longer reference. It prompts for confirmation before removing.
// shell
$ wrangler secret delete OLD_TOKEN --env production// gotcha
Deletion is scoped to the targeted Worker/environment. Forget `--env production` and you'll only remove the top-level environment's copy while the production one lives on.