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
Route
DELETE /v2/spaces/a5a115d0-beab-4395-9d86-f4a802b1c6cb
cURL
curl "https://api.[your-domain.com]/v2/spaces/a5a115d0-beab-4395-9d86-f4a802b1c6cb" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTB9.nYmE3CwgRMeBKBR0qFManemHD7Viuig8dvM5NlNy-Hs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
204 No Content
Audit Records Created By The Request
Audit Record: audit.space.delete-request
Attribute Name |
Value |
id
|
163
|
guid
|
d8fd0809-44ca-4cd7-bbc2-62c4a290f18c
|
created_at
|
2015-01-20 01:52:30 +0000
|
updated_at
|
|
timestamp
|
2015-01-20 01:52:30 +0000
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-271
|
actor_type
|
user
|
actee
|
a5a115d0-beab-4395-9d86-f4a802b1c6cb
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
aa79c06f-eaee-497b-9ac8-c5ccaec7fc22
|
space_guid
|
a5a115d0-beab-4395-9d86-f4a802b1c6cb
|
actor_name
|
email-211@somedomain.com
|
actee_name
|
name-1808
|