Home
Version 3
Organizations API

Organizations API

Delete a Particular Organization

DELETE /v2/organizations/:guid?

Request

Route

DELETE /v2/organizations/600d1fcd-7501-43d0-a672-b000d9e7becf?

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
recursive Will delete all spaces, apps, services, routes, and private domains associated with the org
  • true
  • false
async Will run the delete request in a background job. Recommended: 'true'.
  • true
  • false

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MiIsImVtYWlsIjoiZW1haWwtMzI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzN9.w8IRgWnAbOONQ0PdV5tegGuacPKGP4Oo4XfVbRVyLhI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/600d1fcd-7501-43d0-a672-b000d9e7becf?" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MiIsImVtYWlsIjoiZW1haWwtMzI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzN9.w8IRgWnAbOONQ0PdV5tegGuacPKGP4Oo4XfVbRVyLhI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 382306ed-59c1-496f-9c40-9546f3a5d056
X-Content-Type-Options: nosniff