Hi, I have Couchbase Server and Couchbase Lite database which were synchronized continuously. Now I want to delete some documents at device, but I don’t want it synchronizes with server (the documents which are deleted on device but still have on server). How can I do it?
Curious, do you also not want the device to re-sync the document from server? Can you elaborate a bit on your use case?
Hi there, have some responses from the team. It is possible to remove the document locally and not replicate the deletion, using purgeDocument instead of deleteDocument: http://couchbase.github.io/couchbase-lite-ios/docs/html/interfaceCBLDocument.html#a06bf7fd41678953924a56f76a921fe5a
However, a note from team: The drawback is that if the document on the server changes, a pull replication will bring it back.
1 Like
Thank you so much. That’s also the good solution to me in my case.