Flushes all data from the disk for a given bucket.
The basic syntax is:
couchbase-cli bucket-flush -c [host]:8091 -u [admin] -p [password] [options]
Flushing a bucket involves:
Enable the flush bucket option.
Flush the bucket.
By default, the
bucket-flush command confirms whether or not you truly want to flush the bucket.
During a flush, any client operations will receive a temporary failure. Once the flush is completed all operations will work as normal.
It is recommended that the flush capability is not used in production systems as it irreversibly deletes every document in the bucket.
Even for use cases where this is the desired behaviour, flushing is not recommended as it is a very disruptive process.
You can control and limit the ability to flush individual buckets by setting the
The following are the command options:
Named bucket to act on.
Force command execution without asking for confirmation.