Delete worker

DELETE /v1/Workspaces/{WorkspaceSid}/Workers/{Sid}

Headers

  • If-Match string

    The If-Match HTTP request header

Path parameters

  • WorkspaceSid string Required

    The SID of the Workspace with the Worker to delete.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^WS[0-9a-fA-F]{32}$.

  • Sid string Required

    The SID of the Worker resource to delete.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^WK[0-9a-fA-F]{32}$.

Responses

  • 204

    The resource was deleted successfully.

    Hide headers attributes Show headers attributes
    • X-Rate-Limit-Limit string
    • X-Rate-Limit-Remaining string
    • X-Rate-Limit-Config string
DELETE /v1/Workspaces/{WorkspaceSid}/Workers/{Sid}
curl \
 --request DELETE 'https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}' \
 --user "username:password" \
 --header "If-Match: string"