如何删除存储桶中的所有项目? [英] How to delete all items in the bucket?

查看:55
本文介绍了如何删除存储桶中的所有项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何删除Couchbase存储桶中的所有项目.我正在使用Java客户端.

I was wondering how can i delete all the items in the Couchbase bucket. I'm using java client.

我尝试运行 client.flush()方法.在存储桶上启用了刷新功能.但这会引发异常:

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

推荐答案

CouchBase Server 2.0中存在一个错误.将 ClusterManager类与管理员凭据一起使用

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

在此处找到

这篇关于如何删除存储桶中的所有项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆