Search code examples
iossqlite

iOS Remove sqlite after uninstall app


I have an App developed in XCode, the DataBase was made in Sqlite, but when I remove the app from my iOS device, I lost all the information from that DB. When I install the App again, I have the DB but without information inside.

Can I keep that file.sqlite (in a cloud)? And when app is reinstalled (download) to use the same file.sqlite and to have the data that I had before in that file.


Solution

  • No you cannot keep the file.sqlite on the filesystem after your app is uninstalled. As soon as the app is uninstalled the associated data file is also deleted.