Delete a Particular Space
DELETE /v2/spaces/:guid?
Request
Route
DELETE /v2/spaces/56cf0846-6311-4609-8020-a52077814182?
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
recursive
|
Will delete all apps, services, and routes 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/56cf0846-6311-4609-8020-a52077814182?" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNiIsImVtYWlsIjoiZW1haWwtMTQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NTd9.uhzoAdgmMQJo20vC3LpouFNbE7M4t0-8Uju1VrSVGKY" \
-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
|
3
|
guid
|
0c4b55ea-898c-405f-a441-f88925f8f96c
|
created_at
|
2015-11-13 17:02:37 UTC
|
updated_at
|
|
timestamp
|
2015-11-13 17:02:37 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-216
|
actor_type
|
user
|
actee
|
56cf0846-6311-4609-8020-a52077814182
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
a6ad03b0-c734-4a2b-b19d-560f1999f01a
|
space_guid
|
56cf0846-6311-4609-8020-a52077814182
|
actor_name
|
email-146@somedomain.com
|
actee_name
|
name-1397
|