Delete a Particular Space
DELETE /v2/spaces/:guid?
Request
Route
DELETE /v2/spaces/f1eb6487-b33f-41b2-8e4f-598b1e45e191?
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/f1eb6487-b33f-41b2-8e4f-598b1e45e191?" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OSIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzR9.rCwsOR-5PT1Xic9lZqwDs_uUWJpNILjrEQGWzVfn2Bc" \
-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
|
20
|
guid
|
ffe7b69f-15fd-4c2f-bc78-7c12c28f3777
|
created_at
|
2016-03-17 21:41:14 UTC
|
updated_at
|
|
timestamp
|
2016-03-17 21:41:14 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-189
|
actor_type
|
user
|
actee
|
f1eb6487-b33f-41b2-8e4f-598b1e45e191
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
49fca08b-d5ed-4d02-8f72-153b40d8d9cc
|
space_guid
|
f1eb6487-b33f-41b2-8e4f-598b1e45e191
|
actor_name
|
email-128@somedomain.com
|
actee_name
|
name-783
|