Delete a Particular Space
DELETE /v2/spaces/:guid
Request
Route
DELETE /v2/spaces/8b387dc2-9c18-4017-a118-a108601637d1
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/8b387dc2-9c18-4017-a118-a108601637d1" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ4IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAwfQ.m2_1HPWo9nNJMVLNi3Io4hfMdPqmdUQIgmc7Ndsp580" \
-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
|
9
|
guid
|
28b4f819-7433-4998-b2ec-3911634d27ca
|
created_at
|
2015-04-07 19:11:40 UTC
|
updated_at
|
|
timestamp
|
2015-04-07 19:11:40 UTC
|
type
|
audit.space.delete-request
|
actor
|
uaa-id-48
|
actor_type
|
user
|
actee
|
8b387dc2-9c18-4017-a118-a108601637d1
|
actee_type
|
space
|
metadata
|
{
"request": {
"recursive": false
}
}
|
space_id
|
|
organization_guid
|
93d0568d-f982-4c16-ae5f-3ceaa7978b2f
|
space_guid
|
8b387dc2-9c18-4017-a118-a108601637d1
|
actor_name
|
email-48@somedomain.com
|
actee_name
|
name-194
|