Flush a bucket
couchbase-cli bucket-flush [--cluster <url>] [--username <user>]
[--password <password>] [--bucket <name>]
Deletes all data from a bucket. The bucket itself is not deleted; and all its indexes and configuration-details remain unchanged. Applies to Couchbase, Ephemeral, and Memcached buckets.
- --bucket <name>
-
The name of the bucket to flush.
To flush a bucket named "travel-data", run the following command.
$ couchbase-cli bucket-flush -c 192.168.1.5:8091 --username Administrator \ --password password --bucket travel-data
man:couchbase-cli-bucket-compact[1], man:couchbase-cli-bucket-create[1], man:couchbase-cli-bucket-delete[1], man:couchbase-cli-bucket-edit[1], man:couchbase-cli-bucket-list[1]