The flush operation deletes all values in
a Couchbase bucket.
| API Call | object.flush() | ||
| Asynchronous | no | ||
| Description | Deletes all values from the corresponding bucket | ||
| Returns | Boolean (
Boolean (true/false)
) | ||
| Arguments | |||
| None | |||
This operation is deprecated as of the 1.8.1 Couchbase Server, to prevent accidental, detrimental data loss. Use of this operation should be done only with extreme caution, and most likely only for test databases as it will delete, item by item, every persisted record as well as destroy all cached data.
Third-party client testing tools may perform a
flush operation as part of their test
scripts. Be aware of the scripts run by your testing tools and
avoid triggering these test cases/operations unless you are
certain they are being performed on your sample/test database.
Inadvertent use of flush on production
databases, or other data stores you intend to use will result in
permanent loss of data. Moreover the operation as applied to a
large data store will take many hours to remove persisted
records.
couchbase.flush