I am using Couchbase Lite for an iOS app written in Swift and I need to create a setting that allows the user to reset their app to factory defaults. What is the best way to clear the Couchbase db to the state it was in when the app was first installed?
You mean blank? Just delete the database and recreate it. Or delete the database and replace it with your initial data set again.