Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/16b4008d-3c8f-43b4-8b60-da25ac528411

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/16b4008d-3c8f-43b4-8b60-da25ac528411" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.zqest7D3JJpFfb-pgKebVBlguwRgLYe2XdxClzuIW6s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 1c29e801-3ca8-427a-8071-d54e2ed4a36f
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 9
guid 678b4495-6880-4c09-bdc8-70fe72e94a01
created_at 2015-05-15 16:53:34 UTC
updated_at
timestamp 2015-05-15 16:53:34 UTC
type audit.space.delete-request
actor uaa-id-123
actor_type user
actee 16b4008d-3c8f-43b4-8b60-da25ac528411
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 63734bcc-838a-46e7-ab5e-52da1e61a199
space_guid 16b4008d-3c8f-43b4-8b60-da25ac528411
actor_name email-122@somedomain.com
actee_name name-710