Remove tombstone from CBL 2.1.2

How to remove tombstone documents from CBL, As this can be a huge number in 6 months. Around 50k every week. So we want to remove them once a day. How this can be achieved in CBL 2.1.1.

Thanks in advance.

You can query for the IDs of deleted documents, and then purge them.

Can you provide a sample of query in CBL where _deleted is true?

I’m not good with the syntax in the public API, but the property you want to test is CBLQueryMeta.isDeleted.

That property is not available in 2.1.2 actually. It was added for 2.5.