Let's say I have device with a number of local changes to a CBL database. After some time passes, I want remove the database with these changes from the device. However, I only want to remove the database if the device had actually connected to the network and successfully synced all of those changes with the gateway during that time. Otherwise, this would result in data loss.
What is the simplest way to determine if those changes have been synced?