Getting older documents even after Deleting and closing database in Couch base lite

58 Views Asked by At

I am using couch base lite in an application having sign in /sign out support. By considering each user id as channel, we are creating the documents.Everything is working fine.

But on sign out and sign in using the new user, I am getting previously signed in user documents also, even if I delete and close the database on sign out.Checked by stopping replicators and recreating the views also.But no use.

I am using couch base lite 1.4.0 version. Here are the APIs I am calling when user signs out from the application.

self.pushReplication?.stop()
self.pullReplication?.stop()
self.publicPullReplication?.stop()

self.pushReplication = nil
self.pullReplication = nil
self.publicPullReplication = nil

try self.database.delete()
try self.database.close()

Am I missing something? Please help.

0

There are 0 best solutions below