Delete a Particular Space
DELETE /v2/spaces/:guid?
Request
Route
DELETE /v2/spaces/2669a094-f866-4489-a866-48018a133481?
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/2669a094-f866-4489-a866-48018a133481?" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NDQ1MTYwNX0.wTB70nfnWIUah83Z6MHsFeGLy1Hh2D95_i-qf2K31dg" \
-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
|
4
|
guid
|
b7d1635d-0bb8-41e2-a3d5-d99afdab2326
|
created_at
|
2016-01-26 22:20:05 UTC
|
updated_at
|
|
timestamp
|
2016-01-26 22:20:05 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-8
|
actor_type
|
user
|
actee
|
2669a094-f866-4489-a866-48018a133481
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
763ad31a-7f6a-4299-b486-39ee33ff2c29
|
space_guid
|
2669a094-f866-4489-a866-48018a133481
|
actor_name
|
email-8@somedomain.com
|
actee_name
|
name-53
|