Home
Version 3
Routes API

Routes API

Delete a Particular Route

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

Request

Route

DELETE /v2/routes/182b0b83-f2b1-427d-a8eb-aa4b188b65ba?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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDF9.dt_4bqTCzKqfNKqUJsNx8lFnMGt7Y3OEwWr_inA_elM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/182b0b83-f2b1-427d-a8eb-aa4b188b65ba?recursive=true" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDF9.dt_4bqTCzKqfNKqUJsNx8lFnMGt7Y3OEwWr_inA_elM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: e46afa4b-2b2a-48e6-b7a7-c1a131fd320b
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.route.delete-request

Attribute Name Value
id 32
guid 97c2b837-8470-4d4b-b71d-9ff556a68312
created_at 2016-04-22 19:33:21 UTC
updated_at
timestamp 2016-04-22 19:33:21 UTC
type audit.route.delete-request
actor uaa-id-169
actor_type user
actee 182b0b83-f2b1-427d-a8eb-aa4b188b65ba
actee_type route
metadata
{
  "request": {
    "recursive": true
  }
}
space_id
organization_guid 3ec7b274-234b-49be-ac68-f502cd2289fd
space_guid 812ee70e-053a-4378-aeb8-c2cf0a74d0b0
actor_name email-137@somedomain.com
actee_name host-14