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

Route

DELETE /v2/spaces/8f07c1f1-da6f-4a88-a233-da12ab2d1186

cURL

curl "https://api.[your-domain.com]/v2/spaces/8f07c1f1-da6f-4a88-a233-da12ab2d1186" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MiIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzh9.pPT5Qx4Bgs0iANm0ri9OrWHmfSwkzMx93ipC6EZ9Y1Q" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: 93a58286-e20b-4f4a-8058-d86e54d2162a
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 43
guid 2c90152e-d741-465e-a1bb-309a6f354955
created_at 2014-11-05 01:02:18 +0000
updated_at
timestamp 2014-11-05 01:02:18 +0000
type audit.space.delete-request
actor uaa-id-162
actor_type user
actee 8f07c1f1-da6f-4a88-a233-da12ab2d1186
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid be9369d5-0920-468d-b70e-f9d3121bd849
space_guid 8f07c1f1-da6f-4a88-a233-da12ab2d1186
actor_name email-125@somedomain.com
actee_name name-683