Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.6.x

Memcache API

10 replies [Last post]
  • Login or register to post comments
Sun, 11/07/2010 - 19:41
GSN
Offline
Joined: 11/07/2010
Groups: None

Hi everybody, I want to ask a question.

Can I delete all item in a specific bucket? If can, how to do it?

Thank in advanced!

Top
  • Login or register to post comments
Sun, 11/07/2010 - 23:57
ingenthr
Offline
Joined: 03/16/2010
Groups:

 Sure, the "flush_all" or flush command is perfectly valid here and will only affect the one bucket you're working with, not the entire cluster.

Top
  • Login or register to post comments
Mon, 11/08/2010 - 11:38
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

You can flush a given bucket using the 'membase bucket-flush' command. Type the following command to get the details on how to use it.

/opt/membase/bin/cli/membase help

More details can be found here:

http://wiki.membase.org/display/membase/Membase+Command-line+Interface#M...

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
  • Login or register to post comments
Tue, 11/09/2010 - 09:15
ilhan
Offline
Joined: 07/15/2010
Groups: None

Does this command work in 1.6.0.1 Windows release?

 

Running this command results in 400 Bad Request for me. And when using the REST API I get a "Flushing is currently not implemented" result.

 

 

Top
  • Login or register to post comments
Tue, 11/09/2010 - 11:34
perry
Offline
Joined: 10/11/2010
Groups:

Ilhan, seems like there is a bug in the REST API code, I've filed http://jira.membase.org/browse/MB-2712 for this.  You should still be able to flush a bucket from your client.

 

Perry 

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Thu, 11/11/2010 - 05:29
ilhan
Offline
Joined: 07/15/2010
Groups: None

Perry, can you please tell me what I am missing in the following bucket-flush command?

 

membase bucket-flush -c 192.168.1.98:8091 -u Administrator -p XXX --bucket=test_bucket3 --bucket-password=password

ERROR: unable to bucket-flush (400) Bad RequestERROR: command: bucket-flush: 192.168.1.98:8091, 2  I can successfully create and delete this bucket in CLI. Ilhan

Top
  • Login or register to post comments
Thu, 11/11/2010 - 17:02
perry
Offline
Joined: 10/11/2010
Groups:

 Ilhan, unfortunately there is a bug in the current flush capability.  You'll have to perform the flush of a bucket through the client code.  See the above post for a link to the bug that is tracking this.

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Fri, 05/13/2011 - 05:00
karl
Offline
Joined: 10/04/2010
Groups: None

Hi,

I can't seem to get this to work on the command line either:

C:\Program Files\Membase\Server\bin\cli>membase bucket-flush -c 192.168.125.106:8091 --bucket=default
ERROR: unable to bucket-flush (400) Bad Request
ERROR: command: bucket-flush: 192.168.125.106:8091, No JSON object could be decoded

Top
  • Login or register to post comments
Fri, 05/13/2011 - 05:03
karl
Offline
Joined: 10/04/2010
Groups: None

also can't get it to work using rest:

C:\tools\curl>curl -i http://Administrator:xxx@192.168.125.106:8091/pools/default/buckets/default/controller/doFlush

Top
  • Login or register to post comments
Fri, 05/13/2011 - 13:48
mikew
Offline
Joined: 03/14/2011
Groups:

As noted above there is a bug in the bucket flush capability in the rest api. An alternative to this method is telneting to Membase on port 11211 for the default bucket and typing "flush_all". This will flush all items out of the default bucket.

Top
  • Login or register to post comments
Wed, 05/18/2011 - 11:08
perry
Offline
Joined: 10/11/2010
Groups:

This is also fixed in 1.7. Karl, can you download the latest 1.7 beta and verify that it is working for you?

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker