aybekbuka
aybekbuka

Reputation: 428

How to delete all items in the bucket?

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

Upvotes: 4

Views: 5981

Answers (1)

aybekbuka
aybekbuka

Reputation: 428

There is a bug in CouchBase Server 2.0. Use the ClusterManager class with the Administrator credentials

found here

Upvotes: 3

Related Questions