Deleting with async not set to true will return a 204 status code and an empty response body.
DELETE /v2/services/ab59a7a3-b92e-45c1-9b51-98778d013639
Name | Description | Valid Values | Example Values |
---|---|---|---|
async | Will run the delete request in a background job. Recommended: 'true'. |
|
|
purge | Recursively remove a service and child objects from Cloud Foundry database without making requests to a service broker |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OSIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTF9.xXHgL7uevFje8BUqK_brKdaEIG6VGvsOLtl1dBFWIQU Host: example.org Content-Type: application/json Cookie:
curl "https://api.[your-domain.com]/v2/services/ab59a7a3-b92e-45c1-9b51-98778d013639" -d '' -X DELETE \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OSIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTF9.xXHgL7uevFje8BUqK_brKdaEIG6VGvsOLtl1dBFWIQU" \ -H "Host: example.org" \ -H "Content-Type: application/json" \ -H "Cookie: "
202 Accepted
{ "metadata": { "guid": "839f1a28-f5c8-44ef-baa9-4c356650a3cc", "created_at": "2016-06-08T16:41:31Z", "url": "/v2/jobs/839f1a28-f5c8-44ef-baa9-4c356650a3cc" }, "entity": { "guid": "839f1a28-f5c8-44ef-baa9-4c356650a3cc", "status": "queued" } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 4476f3ee-80da-4288-997d-81881f7803f9 Content-Length: 270 X-Content-Type-Options: nosniff