Purge collection

Couchbase supports purge operation on a bucket allowing us to delete all documents of a bucket. However there is no similar capability on collections causing to have primary indexes to select the documents to delete. Such a delete is also inefficient if we have to delete all documents of a collection.
Its seems like a missing functionality as cleaning up of a bucket/collection is something basic. Is there a plan to add this capability by couchbase?
Also if anyone can suggest some optimal approach to do cleanup a collection given that drop and recreate is not an option.

Track via MB-41351

Best is couchbase eventing Examples: Using the Eventing Service | Couchbase Docs

1 Like

Thanks a lot. I could leverage eventing as an alternate to purge.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.