Home
Version 3
Organizations API

Organizations API

Delete a Particular Organization

DELETE /v2/organizations/:guid

Request

Route

DELETE /v2/organizations/8202e5da-c63f-4c78-a846-b0cfc07a9a18

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
recursive Will delete all spaces and apps associated with the organization
async Will run the delete request in a background job. Recommended: 'true'.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC01OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.49oblOWkAdXMJOWmH39fvBJft7k91dhTZcx8EWmCbTw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/8202e5da-c63f-4c78-a846-b0cfc07a9a18" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC01OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.49oblOWkAdXMJOWmH39fvBJft7k91dhTZcx8EWmCbTw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: d4bf4313-7f88-49f3-82c8-e9e880d4b85b
X-Content-Type-Options: nosniff