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

Route

DELETE /v2/spaces/02f563e3-9bef-49e1-82eb-b56b9e4f27dc

cURL

curl "https://api.[your-domain.com]/v2/spaces/02f563e3-9bef-49e1-82eb-b56b9e4f27dc" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMyIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjh9.WrHnVr3tDL1BBWFZY6sWnJl0fQK6HPFSXCOzz7oIniI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: db707c9b-b963-499b-8e4b-3dfaaf649a93
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 12
guid 6578076b-6f9b-4240-a938-a41027ffe146
created_at 2014-11-24 19:32:48 +0000
updated_at
timestamp 2014-11-24 19:32:48 +0000
type audit.space.delete-request
actor uaa-id-303
actor_type user
actee 02f563e3-9bef-49e1-82eb-b56b9e4f27dc
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 711c727f-8ee2-43fa-8782-f9067f8914e9
space_guid 02f563e3-9bef-49e1-82eb-b56b9e4f27dc
actor_name email-228@somedomain.com
actee_name name-1036