I am trying to delete documents created in sync gateway( and by deleting I mean removing them physically also from sync gateway bucket). For this I used the _pruge provided here. But the issue is that when I purge documents I can see documents physically deleted also but as soon as I restart sync gateway those documents come back in the sync gateway bucket. Seems like sync gateway is having documents in its memory which I cannot delete from its memory so when it is restarted all documents come back again
Do you have any active Couchbase Lite clients replicating to your sync gateway instance, it’s possible that they are pushing the document back up to Sync Gateway after a restart.