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

Route

DELETE /v2/spaces/81dc787f-6c9b-4b8b-a2de-e51417ffe241

cURL

curl "https://api.[your-domain.com]/v2/spaces/81dc787f-6c9b-4b8b-a2de-e51417ffe241" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNSIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDZ9.-MUBfAVqM5UAAQVCFJNQegVpJOjdgN8Y6fWlFXYwFyA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: 0ff76e95-238e-492a-9293-6868e2a59d2e
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 2
guid f6b5a8cd-c017-42bf-ac59-bb253e4ddcaf
created_at 2014-11-13 23:38:26 +0000
updated_at
timestamp 2014-11-13 23:38:26 +0000
type audit.space.delete-request
actor uaa-id-215
actor_type user
actee 81dc787f-6c9b-4b8b-a2de-e51417ffe241
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid ab6936a7-ce1c-440b-a075-59b528d10550
space_guid 81dc787f-6c9b-4b8b-a2de-e51417ffe241
actor_name email-159@somedomain.com
actee_name name-771