Delete a Particular Space
DELETE /v2/spaces/:guid
Request
Route
DELETE /v2/spaces/68a9bf93-04a5-4c87-9860-f5f234847053
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'.
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/68a9bf93-04a5-4c87-9860-f5f234847053" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ4IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg4fQ.lFyyFcwI90jQQoDr5ZKYydIKQl01TqPlM4cQpg_tBT8" \
-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
|
14
|
guid
|
c8478ea3-8fb1-49e0-ad5f-69770ae8b9df
|
created_at
|
2015-07-27 22:43:08 UTC
|
updated_at
|
|
timestamp
|
2015-07-27 22:43:08 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-48
|
actor_type
|
user
|
actee
|
68a9bf93-04a5-4c87-9860-f5f234847053
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
2b4a17ec-4830-4893-8476-190cab57f83e
|
space_guid
|
68a9bf93-04a5-4c87-9860-f5f234847053
|
actor_name
|
email-28@somedomain.com
|
actee_name
|
name-122
|