Domains (deprecated) API

Delete a Particular Domain (deprecated)

DELETE /v2/domains/:guid?

Request

Route

DELETE /v2/domains/bed0d7cb-d489-4858-9a8f-a3c98ef7cbfc?

Parameters

Name Description Valid Values Example Values
guid The guid of the Domain
async Will run the delete request in a background job. Recommended: 'true'.
  • true
  • false

Body

Name Description Default Valid Values Example Values
guid The guid of the domain.
name The name of the domain.
  • example.com
  • foo.example.com
wildcard Allow routes with non-empty hosts
  • true
  • false
owning_organization_guid The organization that owns the domain. If not specified, the domain is shared.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MiIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.siPBC9ahdQBF07HlQYTG44AOypjBI4vRZL760hs51i0
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/bed0d7cb-d489-4858-9a8f-a3c98ef7cbfc?" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MiIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.siPBC9ahdQBF07HlQYTG44AOypjBI4vRZL760hs51i0" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 332e291b-0b16-4f60-a228-3e5b1e501e7e
X-Cf-Warnings: Endpoint+deprecated
X-Content-Type-Options: nosniff