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

Route

DELETE /v2/spaces/7cdac207-2fa9-44e0-89a9-448429790b2b

cURL

curl "https://api.[your-domain.com]/v2/spaces/7cdac207-2fa9-44e0-89a9-448429790b2b" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYzfQ.eUeMHsWSqE_Obb8Hy5BUZ1ex68e1Vz54ANFYAAJDQXw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: ebdd440e-cfb2-4565-a3b6-5fbcae32ed93
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 15
guid f790d2d5-bba3-4cf6-a435-5751a923ceb4
created_at 2014-12-24 01:39:23 +0000
updated_at
timestamp 2014-12-24 01:39:23 +0000
type audit.space.delete-request
actor uaa-id-67
actor_type user
actee 7cdac207-2fa9-44e0-89a9-448429790b2b
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid e1e51129-18d1-40cc-b690-80556391aae3
space_guid 7cdac207-2fa9-44e0-89a9-448429790b2b
actor_name email-48@somedomain.com
actee_name name-137