Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/4278675c-b9dd-4bd4-a689-683eb042e814

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/4278675c-b9dd-4bd4-a689-683eb042e814" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OCIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjV9.YhXMiEJ3w_G06-kscG8J_1UV5JDw2AU3v977V_6Gi7g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 4644c1f4-2efa-4355-837d-aeab5a0eccf6
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 170
guid c2892b25-2862-4d24-9a34-b536604ec7be
created_at 2015-06-16 23:41:05 UTC
updated_at
timestamp 2015-06-16 23:41:05 UTC
type audit.space.delete-request
actor uaa-id-368
actor_type user
actee 4278675c-b9dd-4bd4-a689-683eb042e814
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 3a8e1e26-5d84-4e80-a158-a3562c4c9f39
space_guid 4278675c-b9dd-4bd4-a689-683eb042e814
actor_name email-284@somedomain.com
actee_name name-2217