Hi all,
what is the correct format to delete multiple Documents from Sync Gateway using the _purge API of SyncGateway documented at this link?
It looks like the _purge API is intended to be invoked for 1 single Document at the time. So we would need to loop
through the document IDs to be delete and for each of them invoke with this body:
{
"my_document_id": [
"*"
]
}
Is that the correct approach?
The use case is that in our server-side application we are implementing a way to completely delete from Sync Gateway the Documents that are deleted from Couchbase Server when older than a certain period of time. The goal is to reduce the amount of data transferred to mobile clients over time.
Thank you
5 posts - 2 participants