Delete Worker

Delete your worker. This call has no response body on a successful delete.

/accounts/{account_identifier}/workers/scripts/{script_name}

delete

Worker Script

worker-script-delete-worker

Debug "planAvailability"

null

Debug "tokenPermissions"

{
  "enum": [
    "com.cloudflare.edge.worker.script.delete"
  ]
}

Debug "parameters"

[
  {
    "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"
    }
  },
  {
    "in": "path",
    "name": "account_identifier",
    "required": true,
    "schema": {
      "description": "Identifier",
      "example": "023e105f4ecef8ad9ca31a8372d0c353",
      "maxLength": 32,
      "readOnly": true,
      "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"
    }
  }
]

Debug "requestBody"

{
  "content": {
    "application/json": {}
  },
  "required": true
}

Debug "responses"

{
  "200": {
    "content": {
      "application/json": {}
    },
    "description": "Delete Worker response"
  },
  "4XX": {
    "content": {
      "application/json": {}
    },
    "description": "Delete Worker response failure"
  }
}

Debug "security"

[
  {
    "api_token": []
  },
  {
    "api_email": [],
    "api_key": []
  }
]