Wipe Application.persistentDataPath on app update

Is there a way to make sure the Application.persistentDataPath path gets wiped if the app is updated. My question is currently directly at android but I am curious about iOS for future reference.

I have a database file in this path and I want to make sure the file is overwritten after an update.

Thanks in advance

You can add a file in that path that contains the latest version number of your app. At the app start, if TheFileVersion < currentVersion then Wipe the folder and create the file with the current version.