I have a Flutter app and I am using Hive to store data.
I have deleted some adapters which were used previously. This caused an error and I have to delete the old database.
Now, if I roll out an update, how do I make sure the old Hive database gets deleted when the user updates the app so that it causes no issues.
Instead of deleting, run a database migration.
If you want to delete it anyway,