#NEWLINE# def flush( self ) : #NEWLINE# #INDENT# "\n        Clears the bucket's contents.\n\n        .. note::\n\n            This functionality requires that the flush option be\n            enabled for the bucket by the cluster administrator. You\n            can enable flush on the bucket using the administrative\n            console (See http://docs.couchbase.com/admin/admin/UI/ui-data-buckets.html)\n\n        .. note::\n\n            This is a destructive operation, as it will clear all the\n            data from the bucket.\n\n        .. note::\n\n            A successful execution of this method means that the bucket\n            will have started the flush process. This does not\n            necessarily mean that the bucket is actually empty.\n        " #NEWLINE# path = '/pools/default/buckets/{0}/controller/doFlush' #NEWLINE# path = path . format ( self . bucket ) #NEWLINE# return self . _http_request ( type = _LCB . LCB_HTTP_TYPE_MANAGEMENT , path = self , method = _LCB . LCB_HTTP_METHOD_POST )