Home
Version 3
Routes API

Routes API

Delete a Particular Route

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

Request

Route

DELETE /v2/routes/afead51a-7caa-44bd-ab9b-61945e2705ab?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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDN9.kRArPc0CMcxyg4vyx_tfsDLBClBwIJpustvpM9gBYWI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/afead51a-7caa-44bd-ab9b-61945e2705ab?recursive=true" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDN9.kRArPc0CMcxyg4vyx_tfsDLBClBwIJpustvpM9gBYWI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 74f7e5d3-5e61-453e-b53c-b8d037f242aa
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.route.delete-request

Attribute Name Value
id 57
guid 7822ce6a-ad5c-4987-a501-0b83d019e6fc
created_at 2016-04-16 01:24:03 UTC
updated_at
timestamp 2016-04-16 01:24:03 UTC
type audit.route.delete-request
actor uaa-id-358
actor_type user
actee afead51a-7caa-44bd-ab9b-61945e2705ab
actee_type route
metadata
{
  "request": {
    "recursive": true
  }
}
space_id
organization_guid 351bfe36-6253-4ffc-8112-801b7037a2d2
space_guid c6dfc526-9928-474e-a2c6-c5619f448fdb
actor_name email-260@somedomain.com
actee_name host-30