Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Fields

Name Description Default Valid Values Example Values

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'.

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzJ9.2HGvGWjYDuGkV1bterdc0Ts_zK7K3Bxg8PyKojMT7O4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/spaces/b7b42d4a-4b8f-48da-bdfd-3c4ec238f951

cURL

curl "https://api.[your-domain.com]/v2/spaces/b7b42d4a-4b8f-48da-bdfd-3c4ec238f951" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzJ9.2HGvGWjYDuGkV1bterdc0Ts_zK7K3Bxg8PyKojMT7O4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: 66856240-96d9-4183-945a-0ab8d781f73f
X-Content-Type-Options: nosniff

Status

204 No Content

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 144
guid 504f0f5d-b968-4c13-9158-b71f5a14c7f9
created_at 2015-02-10 01:42:52 UTC
updated_at
timestamp 2015-02-10 01:42:52 UTC
type audit.space.delete-request
actor uaa-id-248
actor_type user
actee b7b42d4a-4b8f-48da-bdfd-3c4ec238f951
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid b3dc9723-e9c1-4f24-bb8d-baf30086346a
space_guid b7b42d4a-4b8f-48da-bdfd-3c4ec238f951
actor_name email-170@somedomain.com
actee_name name-1325