Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/59b6512c-0b6b-4d45-b916-a1f856514148

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NCIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDZ9.7XQne3KBPoexJSNWlkJ_kH8R_50aqzPhz0sVpe4ypAM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/59b6512c-0b6b-4d45-b916-a1f856514148" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NCIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDZ9.7XQne3KBPoexJSNWlkJ_kH8R_50aqzPhz0sVpe4ypAM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 24ef21ad-9cd1-4d22-a161-e0e0a3889fdd
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 6
guid dedfa65d-ac2e-4def-baed-2a51d1116d0c
created_at 2015-06-04 00:05:06 UTC
updated_at
timestamp 2015-06-04 00:05:06 UTC
type audit.space.delete-request
actor uaa-id-174
actor_type user
actee 59b6512c-0b6b-4d45-b916-a1f856514148
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid cb98b215-dc96-4e56-9f60-584da16e22e0
space_guid 59b6512c-0b6b-4d45-b916-a1f856514148
actor_name email-112@somedomain.com
actee_name name-1354