Delete a Particular Space
DELETE /v2/spaces/:guid
Request
Route
DELETE /v2/spaces/c4bad955-b974-4266-87eb-be6dfb8d7f38
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
cURL
curl "https://api.[your-domain.com]/v2/spaces/c4bad955-b974-4266-87eb-be6dfb8d7f38" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjYzMzkwMH0.h_I7EP_uQNjn9b5bbfQo1WThnGUm2qySwSJv_V37Et0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
204 No Content
Headers
Audit Records Created By The Request
Audit Record: audit.space.delete-request
Attribute Name |
Value |
id
|
24
|
guid
|
6caf94c3-429f-4e60-9097-f9e05020b5e5
|
created_at
|
2015-03-10 23:11:39 UTC
|
updated_at
|
|
timestamp
|
2015-03-10 23:11:39 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-100
|
actor_type
|
user
|
actee
|
c4bad955-b974-4266-87eb-be6dfb8d7f38
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
9d6088e0-d87a-4d25-b6b0-0c242d433db6
|
space_guid
|
c4bad955-b974-4266-87eb-be6dfb8d7f38
|
actor_name
|
email-79@somedomain.com
|
actee_name
|
name-304
|