Home
Version 3
Routes API

Routes API

Delete a Particular Route

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

Request

Route

DELETE /v2/routes/1345d8ff-2064-42a8-9ea1-79fc17d19107?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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxOSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjh9.tdzVMn9GGGao2tmOVUKTvuan7hGGvp-fq7yBUGcwNbQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/1345d8ff-2064-42a8-9ea1-79fc17d19107?recursive=true" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxOSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjh9.tdzVMn9GGGao2tmOVUKTvuan7hGGvp-fq7yBUGcwNbQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: c0db3e35-0e58-4dc5-b9f4-434bb41b2b5b
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.route.delete-request

Attribute Name Value
id 217
guid 25ffbbb4-c32d-4ba3-ba75-b3d1c1b96afb
created_at 2016-05-12 00:45:28 UTC
updated_at
timestamp 2016-05-12 00:45:28 UTC
type audit.route.delete-request
actor uaa-id-419
actor_type user
actee 1345d8ff-2064-42a8-9ea1-79fc17d19107
actee_type route
metadata
{
  "request": {
    "recursive": true
  }
}
space_id
organization_guid 7e020ae2-1d5d-4560-8d4c-a760d1e39192
space_guid 68124c65-bd3a-4a55-a672-21bb6e326c91
actor_name email-281@somedomain.com
actee_name host-31