How to delete all items in a bucket?

I was wondering how I can remove all items in a Couchbase bucket. I am using java client.

I tried to run the client.flush() method. Flash is enabled on the bucket. But this throws an exception:

 Exception in thread "Temporary Flusher" java.lang.RuntimeException: Http Error: 401 Reason: Unauthorized Details: No reason given 
+4
source share
1 answer

There is an error in CouchBase Server 2.0. Use the ClusterManager class with administrator credentials

found here

+3
source

All Articles