How clear/flush all docs and collections in db?

I’m trying Couchbase-lite for android and exploring the Collections, used defaultcollection to save the docs.
I want to know is there any easier way to flush or delete all docs in the collection other that deleting the DB itself or querying deleteDoc with each doc ID?

There is no flush API. If database is large and has blobs, deleting the database and recreating it is a better option than querying and deleting all docs.

Thanks for the clarification.

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