Home
Version 3
Routes API

Routes API

Delete a Particular Route

DELETE /v2/routes/:guid?recursive=true

Request

Route

DELETE /v2/routes/8eeeec9c-0ca5-451a-9b70-85b54bd7afe2?recursive=true

Parameters

Name Description Valid Values Example Values
guid The guid of the Route
async Will run the delete request in a background job. Recommended: 'true'.
  • true
  • false
recursive: true

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcwIiwiZW1haWwiOiJlbWFpbC02OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMzfQ.jI77hYzEh4FNpz3AVpUbGMQ3LJVfPPOfn8Y7N_3BmdY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/8eeeec9c-0ca5-451a-9b70-85b54bd7afe2?recursive=true" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcwIiwiZW1haWwiOiJlbWFpbC02OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMzfQ.jI77hYzEh4FNpz3AVpUbGMQ3LJVfPPOfn8Y7N_3BmdY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: efc7235a-d1de-40bb-a179-ea08088a2ff1
X-Content-Type-Options: nosniff