We purged some data through sync gateway but this was getting synced to couch base lite.
Even when this was not available on couch base server. This happened earlier also when we run the delete N1QL on couch-base but the documents kept on coming.
But until we restarted the sync gateway 4-5 times, the documents kept on coming. We have 500000 as cache size on sync gateway.
Secondly we marked a document as deleted from sync gateway on the same cluster but after 5-10 minutes those appeared again.
As of now we are down grading the server and sync gateway to 4.6.3 and 1.4.1.
You shouldn’t be using enable_shared_bucket_access on only a single node in a Sync Gateway cluster - the entire cluster needs to have this setting either enabled or disabled.
This could lead to the behaviour you’re seeing, as there’s different underlying behaviour for purge depending on how that value is set.