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

Route

DELETE /v2/spaces/676d992f-57f6-4550-9c58-df5a1f12f03f

cURL

curl "https://api.[your-domain.com]/v2/spaces/676d992f-57f6-4550-9c58-df5a1f12f03f" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OCIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDJ9.98StSqdHTO5WXMh2LbbzKqettIOGuzOJzVhzgpszTGE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: 214a8aef-1e34-4d45-966e-08310f495048
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 2
guid fb266921-f053-484d-9dee-4d9a67f8ce44
created_at 2015-02-12 01:42:22 UTC
updated_at
timestamp 2015-02-12 01:42:22 UTC
type audit.space.delete-request
actor uaa-id-348
actor_type user
actee 676d992f-57f6-4550-9c58-df5a1f12f03f
actee_type space
metadata
{
  "request": {
    "recursive": false
  }
}
space_id
organization_guid b1a00a34-92bf-47bf-a504-ea4686fe5fb6
space_guid 676d992f-57f6-4550-9c58-df5a1f12f03f
actor_name email-269@somedomain.com
actee_name name-1984