How to delete all items in the bucket?

匆匆过客 提交于 2020-01-03 17:01:18

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!