To delete a bucket from Couchbase Server via the REST API, provide administrative username and password in a request. The URI is for the named bucket you want to delete, and the request is a HTTP DELETE
This operation is data destructive. The service makes no attempt to confirm with the user before removing a bucket. Clients applications using this are advised to check again with the end user, or client application before sending such a request.
The following is an example request to delete the bucket named 'bucket_name':
curl -v -X DELETE -u Administrator:password http://localhost:8091/pools/default/buckets/bucket_nameThe following is the HTTP request:
DELETE /pools/default/buckets/bucket_name Host: node.in.your.pool.com Authorization: Basic xxxxxxxxxxxxxxxxxxx X-memcachekv-Store-Client-Specification-Version: 0.1
If successful, Couchbase Server returns the following HTTP response:
HTTP/1.1 200 OK