when you uninstall the app then first migrate the site and again install the app.
Please check the post.
Thank You!