问题
I was wondering how can i delete all the items in the Couchbase bucket. I'm using java client.
I've tried to run client.flush()
method. Flush is enabled on bucket.
But it throws exception :
Exception in thread "Temporary Flusher" java.lang.RuntimeException: Http Error: 401 Reason: Unauthorized Details: No reason given
回答1:
There is a bug in CouchBase Server 2.0. Use the ClusterManager class
with the Administrator credentials
found here
来源:https://stackoverflow.com/questions/15966769/how-to-delete-all-items-in-the-bucket