Is document expiration supported in Couchbase Lite .NET?



I am trying to expire a document with little success. If I set the ExpireAfter property on the document, I do indeed get a database change that indicates the document has been expired (and also deleted).

However, if I fetch that same document from the database after this happens, it is returned with my original revision. Am I missing something?


After the Expiration please open the couchbase lite sqllite file and see if the document is expired or not. If you delete the database and re sync the data the document will come from server as expiry will not delete the document from server. To do so you need to mention expiry in the sync function if you are using sync gateway 2.0+