Delete task

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

Headers

  • If-Match string

    If provided, deletes this Task if (and only if) the ETag header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP If-Match header.

Path parameters

  • WorkspaceSid string Required

    The SID of the Workspace with the Task 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 Task resource to delete.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^WT[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}/Tasks/{Sid}
curl \
 --request DELETE 'https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}' \
 --user "username:password" \
 --header "If-Match: string"