Headers
-
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
-
The SID of the Workspace with the Task to delete.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WS[0-9a-fA-F]{32}$
. -
The SID of the Task resource to delete.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WT[0-9a-fA-F]{32}$
.
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"