Deleting with async not set to true will return a 204 status code and an empty response body.
DELETE /v2/services/a9216936-10a5-4e29-9234-6f7426a4fc42
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzh9.HLK-SAUxVzLArEeRVwns2_vj_N2NfZaj95yI07wf_bY Host: example.org Content-Type: application/x-www-form-urlencoded Cookie:
curl "https://api.[your-domain.com]/v2/services/a9216936-10a5-4e29-9234-6f7426a4fc42" -d '' -X DELETE \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzh9.HLK-SAUxVzLArEeRVwns2_vj_N2NfZaj95yI07wf_bY" \ -H "Host: example.org" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Cookie: "
202 Accepted
{ "metadata": { "guid": "4e5bc505-ac14-4397-b5f4-a17d5521c160", "created_at": "2016-03-17T21:41:18Z", "url": "/v2/jobs/4e5bc505-ac14-4397-b5f4-a17d5521c160" }, "entity": { "guid": "4e5bc505-ac14-4397-b5f4-a17d5521c160", "status": "queued" } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 270 X-Content-Type-Options: nosniff