Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/b4508047-bac5-4821-b4df-6d2c94aab6f2

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'.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OH0.4Imkd15yBkGYg1x9q6DXbhbC6Dwc7m8ViNLgylHv8YY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/b4508047-bac5-4821-b4df-6d2c94aab6f2" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OH0.4Imkd15yBkGYg1x9q6DXbhbC6Dwc7m8ViNLgylHv8YY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: bd63517e-5d18-4247-b82d-1b4975bfb069
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 20
guid bcd46218-84cb-4a84-aaa7-d54642ba458d
created_at 2015-07-06 23:22:58 UTC
updated_at
timestamp 2015-07-06 23:22:58 UTC
type audit.space.delete-request
actor uaa-id-123
actor_type user
actee b4508047-bac5-4821-b4df-6d2c94aab6f2
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
organization_guid ae0cacef-6f55-4864-a675-1ba44a9ac162
space_guid b4508047-bac5-4821-b4df-6d2c94aab6f2
actor_name email-74@somedomain.com
actee_name name-337