Delete a Particular Space
DELETE /v2/spaces/:guid
Request
Route
DELETE /v2/spaces/7a104d15-b05c-4c1c-9cc5-7dedac800e1e
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/7a104d15-b05c-4c1c-9cc5-7dedac800e1e" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMSIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2MH0.KFqQtSQ5Qlfph2syI-Qk3MxMSYp68N5abrwhkrYjr0Y" \
-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
|
12
|
guid
|
90871e1b-acf8-4118-8291-160e39854cf6
|
created_at
|
2015-03-18 22:52:40 UTC
|
updated_at
|
|
timestamp
|
2015-03-18 22:52:40 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-111
|
actor_type
|
user
|
actee
|
7a104d15-b05c-4c1c-9cc5-7dedac800e1e
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
1a09eadb-2e83-41a9-b26e-acb0f55d0b9b
|
space_guid
|
7a104d15-b05c-4c1c-9cc5-7dedac800e1e
|
actor_name
|
email-73@somedomain.com
|
actee_name
|
name-281
|