Home
Version 3
Routes API

Routes API

Delete a Particular Route

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

Request

Route

DELETE /v2/routes/c2422e74-c760-4bd1-9247-80a01e5130a0?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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMTkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzl9.2OyeO7U_VvGl3eFelE13L6IkDKK6H3t26MP_Xfp7oVA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/c2422e74-c760-4bd1-9247-80a01e5130a0?recursive=true" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMTkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzl9.2OyeO7U_VvGl3eFelE13L6IkDKK6H3t26MP_Xfp7oVA" \
	-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 46
guid 5105ba99-4215-4e2b-8ef4-c021db4a31f4
created_at 2016-03-17 21:41:19 UTC
updated_at
timestamp 2016-03-17 21:41:19 UTC
type audit.route.delete-request
actor uaa-id-284
actor_type user
actee c2422e74-c760-4bd1-9247-80a01e5130a0
actee_type route
metadata
{
  "request": {
    "recursive": true
  }
}
space_id
organization_guid fe679449-9f62-4b13-8595-cb9af470e8cf
space_guid 8d907ac9-4d2a-46ad-84f1-fb2b426aa7c4
actor_name email-191@somedomain.com
actee_name host-26