Delete Worker
delete_workerPermanently deletes a Cloudflare Worker script and its versions, deployments, and static assets; use the force option to remove it even when dependent resources exist.
Instructions
Permanently delete a Worker script, including its versions, deployments, and any static assets. Set force to delete even when other resources depend on it.
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": "delete_worker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Delete even if other resources (e.g. routes) depend on the Worker | |
| script_name | Yes | The name of the Worker script to delete |