Home
Version 3
Routes API

Routes API

Delete a Particular Route

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

Request

Route

DELETE /v2/routes/b493969e-e335-4dc1-ae6b-cf48514aa169?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.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNiIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NjJ9.AfNyJ1I76OzURLlRIXNgTN2_aFfEN8t3NiR3iH12AVk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/b493969e-e335-4dc1-ae6b-cf48514aa169?recursive=true" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNiIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NjJ9.AfNyJ1I76OzURLlRIXNgTN2_aFfEN8t3NiR3iH12AVk" \
	-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 216
guid 3d311523-cb94-4729-b04d-690891109470
created_at 2016-04-06 00:17:41 UTC
updated_at
timestamp 2016-04-06 00:17:41 UTC
type audit.route.delete-request
actor uaa-id-426
actor_type user
actee b493969e-e335-4dc1-ae6b-cf48514aa169
actee_type route
metadata
{
  "request": {
    "recursive": true
  }
}
space_id
organization_guid 252788ea-d159-4b32-8540-85f56f3b6f43
space_guid 9fb8eb99-d7c5-48f5-b515-38b2d7c20147
actor_name email-295@somedomain.com
actee_name host-26