Delete Document


#1

Hi guys, i am using android sync gateway.
I understand that the delete function just changes the state of the document deleted to true. I was wondering is there any way, i could completely wipe out the whole document from the couchbase sever through the client side( Android Studio)


#2

Not through Couchbase Lite APIs. You can directly send a POST request to SG at /db/_purge to purge the document.

If you do this, the deletion won’t propagate to any other clients, though — when they replicate they won’t be told that the doc has changed. That’s the purpose of leaving behind the deletion tombstone: it’s there to be replicated to clients so they know about the deletion.


#3

Understood, thanks Jens!