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

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

Delete the database (Database.delete).

1 Like

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

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

1 Like