def flush(self):
        path = '/pools/default/buckets/{0}/controller/doFlush'
        path = path.format(self.bucket)
        return self._http_request(type=_LCB.LCB_HTTP_TYPE_MANAGEMENT,
                                  path=path, method=_LCB.LCB_HTTP_METHOD_POST)
Clears the bucket's contents.
dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/bucket.py/Bucket.flush