Delete a bucket
couchbase-cli bucket-delete [--cluster <url>] [--username <user>] [--password <password>] [--bucket <name>]
Deletes a bucket in the cluster. When the bucket is deleted, all indexes on the bucket are also deleted.
- --bucket <name>
-
The name of the bucket to delete.
To delete a bucket named "travel-data", run the command below.
$ couchbase-cli bucket-delete -c 192.168.1.5 --username Administrator \ --password password --bucket travel-data
man:couchbase-cli-bucket-compact[1], man:couchbase-cli-bucket-create[1], man:couchbase-cli-bucket-edit[1], man:couchbase-cli-bucket-flush[1], man:couchbase-cli-bucket-list[1]