Delete a Particular Space
DELETE /v2/spaces/:guid
Request
Route
DELETE /v2/spaces/a24e6774-86b7-4582-be63-dfe10dc32f83
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/a24e6774-86b7-4582-be63-dfe10dc32f83" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNyIsImVtYWlsIjoiZW1haWwtNjZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMH0.igiewR3291j91pMbVduikGnyISY2foJYOWnrQY_Nutw" \
-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
|
148
|
guid
|
faedc34b-d83d-41e1-a9eb-9f8fde51213b
|
created_at
|
2015-05-07 23:37:10 UTC
|
updated_at
|
|
timestamp
|
2015-05-07 23:37:10 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-117
|
actor_type
|
user
|
actee
|
a24e6774-86b7-4582-be63-dfe10dc32f83
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
838219d3-87a3-456b-ad4b-a145edda43eb
|
space_guid
|
a24e6774-86b7-4582-be63-dfe10dc32f83
|
actor_name
|
email-66@somedomain.com
|
actee_name
|
name-1047
|