Delete a Particular Space
DELETE /v2/spaces/:guid?
Request
Route
DELETE /v2/spaces/e3eef111-c833-4a12-ac7f-0d40b1598484?
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
recursive
|
Will delete all apps, services, routes, and service brokers associated with the space
|
|
|
async
|
Will run the delete request in a background job. Recommended: 'true'.
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/e3eef111-c833-4a12-ac7f-0d40b1598484?" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOSIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDd9.Bnma_ZCyvyOT5dJq66ZIv4rVVwBNX3Pvxl9vOSOj5kU" \
-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
|
44
|
guid
|
f8a2b22e-c712-496d-b9e0-f7ef16280b1c
|
created_at
|
2016-04-22 19:33:27 UTC
|
updated_at
|
|
timestamp
|
2016-04-22 19:33:27 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-319
|
actor_type
|
user
|
actee
|
e3eef111-c833-4a12-ac7f-0d40b1598484
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
a91a57b7-09af-4344-8bdb-17790ef11fbb
|
space_guid
|
e3eef111-c833-4a12-ac7f-0d40b1598484
|
actor_name
|
email-221@somedomain.com
|
actee_name
|
name-1070
|