Delete Couchbase Docucments

Hi,
I am running Version: 4.1.1-5914 Enterprise Edition (build-5914) as my production database.
I need to delete 30 Million Documents from Database. Can you suggest me alternative to do this ?

  1. Add ttl to all the documents inserted till today
  2. Simply do a delete query where insereted ts < today

Note:
While I was deleting the documents using method two.
Db had stopped indexing the documents.After stopping the delete query, it started indexing again

Hi Can I please get some help from you guys. :slight_smile:

If you have an EE licence then you can of course raise a support ticket.

If you want to simply remove everything, you can use the Flush option on the bucket.