Doc Still in Local.db after deleting user access to doc, CouchBase.lite Couchbase sync

How are you enforcing user access to the doc ? You should be using channels .One option - If each user has its own channel, you can remove access to doc but removing doc from user’s channel . That will send a removal change to the client. Couchbase Lite creates a tombstone revision corresponding to the doc when it receives this. This doc will no longer appear in any future queries or replications. So it is removed for all practical purposes from the database.
In an upcoming release of Couchbase Lite, we will be introducing features that will facilitate the purging of the removed docs