Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8 REST API for Administration
Chapter Sections
Chapters

8.29. Deleting a Bucket

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

Warning

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_name

The following is the HTTP request:

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 Response
HTTP/1.1 200 OK