Home
Version 3
Spaces API

Spaces API

Delete a Particular Space

DELETE /v2/spaces/:guid

Request

Route

DELETE /v2/spaces/2ccc602f-f74d-4920-9410-8a78c3ad88d1

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/2ccc602f-f74d-4920-9410-8a78c3ad88d1" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOSIsImVtYWlsIjoiZW1haWwtMzA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDF9.Tvie17l-wEwfC80tMKmD_KS_e42YgxqXpAQgTSOmPsE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 22662cd4-e5ab-4b3d-9494-96574d69ff3f
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.space.delete-request

Attribute Name Value
id 12
guid f45e7413-d4d0-4d89-8027-54cb5926aeee
created_at 2015-05-21 01:03:21 UTC
updated_at
timestamp 2015-05-21 01:03:21 UTC
type audit.space.delete-request
actor uaa-id-409
actor_type user
actee 2ccc602f-f74d-4920-9410-8a78c3ad88d1
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid 7e3ab225-be72-4e4a-8b2b-3f2611fa24fd
space_guid 2ccc602f-f74d-4920-9410-8a78c3ad88d1
actor_name email-305@somedomain.com
actee_name name-2295