How do I clear down the couchbase cache?


#1

Hi,

I am using couchbase on ubuntu and i want to send a command to the ubuntu server to clear down cache within couchbase. Does someone know the command to use?

I’m populating values in couchbase from our database, then our application brings the data from couchbase into our web application. Through an admin app, the values in the database need to be modified. So i need to reset what is in couchbase. Any ideas how to achieve this?

I have a batch command i run on the windows version of couchbase and it clears it down fine:

“C:/Program Files/Couchbase/Server/bin/couchbase-cli.exe” bucket-flush -c localhost:8091 --bucket=default

I need the equivalent command for unix.

Thanks!
Rob


#2

The equivalent command on Ubuntu is:

/opt/couchbase/bin/couchbase-cli bucket-flush -c localhost:8091 --bucket=default

Also, in Couchbase 1.8.1 we disable flushing bucket by default and recommend deleting and recreating the bucket.