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

Route

DELETE /v2/spaces/cdd83436-922e-441f-9ef3-56195d260232

cURL

curl "https://api.[your-domain.com]/v2/spaces/cdd83436-922e-441f-9ef3-56195d260232" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcwIiwiZW1haWwiOiJlbWFpbC01MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg4fQ.Djfbqn0KjWtYRzpbFTM6k55l3XQraX6TI5gv7CSPWBM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: 7079f794-9f8a-4995-b601-98d4a78502e5
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 10
guid 75215a34-92d2-408e-9873-18d119e65af5
created_at 2015-02-13 22:34:48 UTC
updated_at
timestamp 2015-02-13 22:34:48 UTC
type audit.space.delete-request
actor uaa-id-70
actor_type user
actee cdd83436-922e-441f-9ef3-56195d260232
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 17a6b825-5930-4bd4-bf3e-a4bbce75f022
space_guid cdd83436-922e-441f-9ef3-56195d260232
actor_name email-51@somedomain.com
actee_name name-208