Delete a Particular Space
DELETE /v2/spaces/:guid?
Request
Route
DELETE /v2/spaces/3855c31d-7405-4ab3-b509-8f4ce6cf00cf?
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/3855c31d-7405-4ab3-b509-8f4ce6cf00cf?" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNiIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDJ9.Ea9Ispel9Jo8mJKmKIKLDq03bU2io78Bma4WobkoOtM" \
-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
|
41
|
guid
|
97097c12-fd6f-4e81-8eca-7613b18b5f6f
|
created_at
|
2015-11-03 00:54:02 UTC
|
updated_at
|
|
timestamp
|
2015-11-03 00:54:02 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-216
|
actor_type
|
user
|
actee
|
3855c31d-7405-4ab3-b509-8f4ce6cf00cf
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
e88e7c99-5b65-4c3e-8188-0497821737f1
|
space_guid
|
3855c31d-7405-4ab3-b509-8f4ce6cf00cf
|
actor_name
|
email-179@somedomain.com
|
actee_name
|
name-1030
|