On logging out, how to remove all docs from phone?


#1

When logging out of your account on Couchbase Mobile (Swift), how do I remove all docs that have been stored locally on the phone?


#2

Delete the database (Database.delete).


#3

Thanks for the fast response Jens. This will only delete the local copy of the database, not any server data?


#4

Yes, this method will delete the local database as one action. No replication will take place.