Delete All documents from a bucket


#1

We want to clear all the documents from a particular bucket. Every week there will be 100K records getting collected in this bucket and once we are done with that week, we no more need that data. We would want to start the next week with fresh data flowing into the system.

What is the best way to clear all the data from a bucket?


#2

Hi,

You could enable flush on your bucket: http://docs.couchbase.com/admin/admin/REST/rest-bucket-flush.html