Delete task

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://twilio.demo.bump-doc.com/doc/taskrouter/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Taskrouter MCP server": {
  "url": "https://twilio.demo.bump-doc.com/doc/taskrouter/mcp"
}
Close
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"