delete_worker_secret
Delete a secret binding from a Cloudflare Worker script. Requires human approval to execute, otherwise returns a preview of the change.
Instructions
Delete a secret binding from a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script_name": "<script_name>",
"name": "<name>"
},
"name": "delete_worker_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. | |
| script_name | Yes | The Worker script name. | |
| name | Yes | Secret binding name to delete. | |
| confirm | No | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve before this is set to true. |