Skip to main content
Skip to Content
Dispatch API

Delete a plan

DELETE
/plans/{planId}

The playground uses your live account

Requests are sent with your real API key, so creating, updating or deleting here changes your production data.

Delete a plan and related routes. This action cannot be undone and will delete all the releated routes as well, even if the plan is not in a writable state. As this action is not atomic, it is possible that only partial deletion occurs if the endpoint errors out with a 500. In that case it is recommended to retry the request.

Authorization

BasicAuth
headerAuthorizationBasic <token>

Use the API key as the username and leave the password empty.

Path Parameters

planId*string

The plan id

Match^[a-zA-Z0-9---_]{1,50}$

Response Body

Plan deleted successfully

Example Request
curl -X DELETE 'https://api.spoke.com/public/v1/plans/string'
Example Response
Empty