Delete Bucket

Use the following API request to delete a bucket:

1
2
DELETE /billing/buckets/id.xml
DELETE /billing/buckets/id.json

XML Request Example

1
curl -i -X DELETE http://onapp.test/billing/buckets/9.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-Type: application/xml'

JSON Request Example

1
curl -i -X DELETE http://onapp.test/billing/buckets/9.json -u user:userpass -H 'Accept: application/json' -H 'Content-Type: application/json'

Returns the HTTP 204 response on successful processing. HTTP 404 appears when there is no bucket with the requested ID or the URL is incorrect.