Cloudflare
Delete Worker
Delete Worker
DELETE /cloudflare/client/v4/accounts/{account_id}/workers/workers/{worker_id}
Delete a Worker. It can be restored on the native API for 7 days. force is accepted and ignored.
Support: supported
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| account_id | path | string | true | Any value; your account comes from the API key. |
| worker_id | path | string | true | Worker ID or name. |
Response
HTTP 200
Success
application/json
| Name | Type | Description |
|---|---|---|
| success | boolean | Always true on success. |
| errors | array<any> | Always empty on success. |
| messages | array<any> | Always empty on success. |
| result | null | No result. |
| result_info | object | Present on list responses. |
| result_info.page | integer | Page number. |
| result_info.per_page | integer | Page size. |
| result_info.count | integer | Items on this page. |