Home
Version 3
Routes API

Routes API

Delete a Particular Route

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

Request

Route

DELETE /v2/routes/fc6bd766-85d3-4354-9209-369688608bab?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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDJ9.69F5T8Qj8dKsDc1c-xeIYLESBr81rvrZjHe34Ad-ZOI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/fc6bd766-85d3-4354-9209-369688608bab?recursive=true" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDJ9.69F5T8Qj8dKsDc1c-xeIYLESBr81rvrZjHe34Ad-ZOI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.route.delete-request

Attribute Name Value
id 173
guid f6473157-7e03-4f26-81a1-608c0bf0ec05
created_at 2016-02-19 02:04:02 UTC
updated_at
timestamp 2016-02-19 02:04:02 UTC
type audit.route.delete-request
actor uaa-id-347
actor_type user
actee fc6bd766-85d3-4354-9209-369688608bab
actee_type route
metadata
{
  "request": {
    "recursive": true
  }
}
space_id
organization_guid 60ecf783-46be-4ae3-bdd6-414b4fed0aaf
space_guid e1066873-6a9c-4831-9108-e63f4e2f8a13
actor_name email-247@somedomain.com
actee_name host-21