Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/7a104d15-b05c-4c1c-9cc5-7dedac800e1e

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/7a104d15-b05c-4c1c-9cc5-7dedac800e1e" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMSIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2MH0.KFqQtSQ5Qlfph2syI-Qk3MxMSYp68N5abrwhkrYjr0Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 3f7ab2d8-73be-46e0-81da-792ecae2aa7a
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 12
guid 90871e1b-acf8-4118-8291-160e39854cf6
created_at 2015-03-18 22:52:40 UTC
updated_at
timestamp 2015-03-18 22:52:40 UTC
type audit.space.delete-request
actor uaa-id-111
actor_type user
actee 7a104d15-b05c-4c1c-9cc5-7dedac800e1e
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 1a09eadb-2e83-41a9-b26e-acb0f55d0b9b
space_guid 7a104d15-b05c-4c1c-9cc5-7dedac800e1e
actor_name email-73@somedomain.com
actee_name name-281