|
Couchbase C Client
3.3.18
Asynchronous C Client for Couchbase
|
Clear the contents of a bucket.
Flush is useful for development environments (for example clearing a bucket before running tests).
| lcb_STATUS lcb_cbflush3 | ( | lcb_INSTANCE * | instance, |
| void * | cookie, | ||
| const lcb_CMDCBFLUSH * | cmd | ||
| ) |
Flush a bucket This function will properly flush any type of bucket using the REST API via HTTP.
The callback invoked under LCB_CALLBACK_CBFLUSH will be invoked with either a success or failure status depending on the outcome of the operation. Note that in order for lcb_cbflush3() to succeed, flush must already be enabled on the bucket via the administrative interface.
| instance | the library handle |
| cookie | the cookie passed in the callback |
| cmd | empty command structure. Currently there are no options for this command. |