Delete Secret
delete_secretRemove a secret binding from a Cloudflare Worker and deploy a new version without it, so any code that reads the secret returns undefined.
Instructions
Delete one secret binding from a Worker. This creates and deploys a new version without the secret, so code reading it will see undefined.
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_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the secret binding to delete | |
| script_name | Yes | The name of the Worker script |