WorkerWorkers for Platforms

Delete Worker (Workers for Platforms)

DEL
Delete a worker from a Workers for Platforms namespace. This call has no response body on a successful delete.

Path parameters

account_identifierstringRequired
Identifier
dispatch_namespacestringRequired
Name of the Workers for Platforms dispatch namespace.
script_namestringRequired
Name of the script, used in URLs and route configuration.

Query parameters

forcebooleanOptional
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.
DEL
1curl -X DELETE https://api.cloudflare.com/client/v4/accounts/023e105f4ecef8ad9ca31a8372d0c353/workers/dispatch/namespaces/my-dispatch-namespace/scripts/this-is_my_script-01 \
2 -H "Authorization: Bearer <token>"