Delete a Particular Space
DELETE /v2/spaces/:guid?
Request
Route
DELETE /v2/spaces/67f82723-6159-4f22-a50b-817924936de2?
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/67f82723-6159-4f22-a50b-817924936de2?" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MSIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDR9.n9uMrVXvmxlf2HwpF3-sZuI5R8GXoVjQxH9XYaSNKdc" \
-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
|
183
|
guid
|
9e96bb8a-52c4-4c76-8037-e67a3683016d
|
created_at
|
2016-02-19 02:04:04 UTC
|
updated_at
|
|
timestamp
|
2016-02-19 02:04:04 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-371
|
actor_type
|
user
|
actee
|
67f82723-6159-4f22-a50b-817924936de2
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
b23e5199-e193-450e-b7c5-e9fa50d866b9
|
space_guid
|
67f82723-6159-4f22-a50b-817924936de2
|
actor_name
|
email-271@somedomain.com
|
actee_name
|
name-2443
|