Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/969a1c44-c5e5-4ca8-a443-cf6892f7b896

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTB9.Oekhu-8bQ_tCYV4sdC1xvq4-y9WK58LY87vU6_l4duM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/969a1c44-c5e5-4ca8-a443-cf6892f7b896" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTB9.Oekhu-8bQ_tCYV4sdC1xvq4-y9WK58LY87vU6_l4duM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 1e707b60-9096-4079-b19d-7f25b87fe56a
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 17
guid 111665ae-d9ca-4cff-966e-6b99b0508c53
created_at 2015-03-05 19:15:50 UTC
updated_at
timestamp 2015-03-05 19:15:50 UTC
type audit.space.delete-request
actor uaa-id-251
actor_type user
actee 969a1c44-c5e5-4ca8-a443-cf6892f7b896
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 4163d8cf-1d09-4cfa-8e81-dc4b0ba7823b
space_guid 969a1c44-c5e5-4ca8-a443-cf6892f7b896
actor_name email-184@somedomain.com
actee_name name-749