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.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMCIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODR9.7d8-ACnFM9eCDYZ_vSSNIUqH-lk0axfZpxiZFvsmg08
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/spaces/ec10fb87-6e40-498f-aa11-6fb4b1f5eb08

cURL

curl "https://api.[your-domain.com]/v2/spaces/ec10fb87-6e40-498f-aa11-6fb4b1f5eb08" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMCIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODR9.7d8-ACnFM9eCDYZ_vSSNIUqH-lk0axfZpxiZFvsmg08" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: 5ac97313-27a0-4da2-932f-62c8654db23a
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 28
guid 5a02d5c3-00a6-47de-b478-2e78a4101177
created_at 2015-01-27 19:14:44 UTC
updated_at
timestamp 2015-01-27 19:14:44 UTC
type audit.space.delete-request
actor uaa-id-330
actor_type user
actee ec10fb87-6e40-498f-aa11-6fb4b1f5eb08
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 3b856de1-bf94-4f3d-9c34-96f1f838af91
space_guid ec10fb87-6e40-498f-aa11-6fb4b1f5eb08
actor_name email-251@somedomain.com
actee_name name-1936