Delete a Particular Space
DELETE /v2/spaces/:guid
Request
Route
DELETE /v2/spaces/449242c9-37fd-4585-831a-44e2cf576e45
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
async
|
Will run the delete request in a background job. Recommended: 'true'.
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/449242c9-37fd-4585-831a-44e2cf576e45" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxMzl9.UjaQlEAtnGoLZ1YVVjoDX9dY31YFtRQf8E497dJhuXg" \
-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
|
149
|
guid
|
6ba9952a-b5f6-4063-bc08-4e8eccd5dd7d
|
created_at
|
2015-04-15 00:55:39 UTC
|
updated_at
|
|
timestamp
|
2015-04-15 00:55:39 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-188
|
actor_type
|
user
|
actee
|
449242c9-37fd-4585-831a-44e2cf576e45
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
77adc437-7744-4dc7-9982-144f6a1dfce5
|
space_guid
|
449242c9-37fd-4585-831a-44e2cf576e45
|
actor_name
|
email-110@somedomain.com
|
actee_name
|
name-1253
|