Delete a Particular Space
DELETE /v2/spaces/:guid
Request
Route
DELETE /v2/spaces/e0fc4fbb-477b-4f57-a11a-049afdff699a
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
recursive
|
Will delete all apps 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/e0fc4fbb-477b-4f57-a11a-049afdff699a" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDl9.W89uOk7fhNJJ2EEIJ9RX4DQsUbW3yKvHYJHxnpz4Dog" \
-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
|
15
|
guid
|
8868a42c-03bd-4b02-857e-6f4d17d59391
|
created_at
|
2015-08-06 00:36:49 UTC
|
updated_at
|
|
timestamp
|
2015-08-06 00:36:49 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-302
|
actor_type
|
user
|
actee
|
e0fc4fbb-477b-4f57-a11a-049afdff699a
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
fbe76da8-5caa-4054-a7f0-1394b7247886
|
space_guid
|
e0fc4fbb-477b-4f57-a11a-049afdff699a
|
actor_name
|
email-212@somedomain.com
|
actee_name
|
name-1908
|