Delete a worker from a Workers for Platforms namespace. This call has no response body on a successful delete.
/accounts/{account_identifier}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}
delete
Workers for Platforms
namespace-worker-script-delete-worker
null {
"enum": [
"com.cloudflare.edge.worker.script.delete"
]
} [
{
"in": "path",
"name": "account_identifier",
"required": true,
"schema": {
"description": "Identifier",
"example": "023e105f4ecef8ad9ca31a8372d0c353",
"maxLength": 32,
"readOnly": true,
"type": "string"
}
},
{
"in": "path",
"name": "dispatch_namespace",
"required": true,
"schema": {
"description": "Name of the Workers for Platforms dispatch namespace.",
"example": "my-dispatch-namespace",
"pattern": "^.+$",
"type": "string"
}
},
{
"in": "path",
"name": "script_name",
"required": true,
"schema": {
"description": "Name of the script, used in URLs and route configuration.",
"example": "this-is_my_script-01",
"pattern": "^[a-z0-9_][a-z0-9-_]*$",
"type": "string"
}
},
{
"description": "If set to true, delete will not be stopped by associated service binding, durable object, or other binding. Any of these associated bindings/durable objects will be deleted along with the script.",
"in": "query",
"name": "force",
"schema": {
"type": "boolean"
}
}
] {
"content": {
"application/json": {}
},
"required": true
} {
"200": {
"content": {
"application/json": {}
},
"description": "Delete Worker response"
},
"4XX": {
"content": {
"application/json": {}
},
"description": "Delete Worker response failure"
}
} [
{
"api_token": []
},
{
"api_email": [],
"api_key": []
}
]