Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/a5c716d1-6950-4057-a298-bf51be88ba44

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/a5c716d1-6950-4057-a298-bf51be88ba44" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.vsW7rwRzW01k-XT2mKey6lcVRWTQyi6nREuqUxlHVR8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: c413124d-20c8-48f0-9a49-6a449819323f
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 6
guid cede4505-ef1e-4ecd-afbe-d414f5722efc
created_at 2015-03-20 18:27:23 UTC
updated_at
timestamp 2015-03-20 18:27:23 UTC
type audit.space.delete-request
actor uaa-id-71
actor_type user
actee a5c716d1-6950-4057-a298-bf51be88ba44
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 4ec0a962-480b-4390-80bc-39e00279cb6e
space_guid a5c716d1-6950-4057-a298-bf51be88ba44
actor_name email-52@somedomain.com
actee_name name-196