Delete a Particular Space
DELETE /v2/spaces/:guid?
Request
Route
DELETE /v2/spaces/c6824583-3432-4e4f-aa72-05d8cdbb48f9?
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/c6824583-3432-4e4f-aa72-05d8cdbb48f9?" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyIiwiZW1haWwiOiJlbWFpbC0xMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcwfQ.Cgix8qW6eAmA1BjLMXtfXut3CkteN0DinWnF4gl74xY" \
-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
|
2
|
guid
|
eb01a0af-cb7b-428d-b49d-448c918aa406
|
created_at
|
2016-01-13 17:29:30 UTC
|
updated_at
|
|
timestamp
|
2016-01-13 17:29:30 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-12
|
actor_type
|
user
|
actee
|
c6824583-3432-4e4f-aa72-05d8cdbb48f9
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
4adbc726-3833-45ae-a85b-5c5cfcc23ef8
|
space_guid
|
c6824583-3432-4e4f-aa72-05d8cdbb48f9
|
actor_name
|
email-12@somedomain.com
|
actee_name
|
name-31
|