Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/18ec247e-cbd5-4abf-acb1-a57ab643f45a

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njl9.dRLifxx7dvUa06wfqAL7W-bzlhRaaLtBDD78f0vyzNM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/18ec247e-cbd5-4abf-acb1-a57ab643f45a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njl9.dRLifxx7dvUa06wfqAL7W-bzlhRaaLtBDD78f0vyzNM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 77bb075c-ce3f-4aa7-8bd6-d15c6d4ffc4e
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 12
guid e09c1773-c9b4-4bf6-84c2-b064f9be4d8f
created_at 2015-03-03 00:51:09 UTC
updated_at
timestamp 2015-03-03 00:51:09 UTC
type audit.space.delete-request
actor uaa-id-236
actor_type user
actee 18ec247e-cbd5-4abf-acb1-a57ab643f45a
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 1ab6a0e5-d18d-40d0-8e04-e132bdc78924
space_guid 18ec247e-cbd5-4abf-acb1-a57ab643f45a
actor_name email-168@somedomain.com
actee_name name-1323