unlink or remove database

enonod

Well-Known Member
Licensed User
Longtime User
I have used a small SQLite database which is stored internally in the app.
It works OK
I then tried test the app to see whether the database would be created if it did not exist.
I seem unable to get rid of it. If I remove all reference in the app and run it then put references back it still finds it, with the same data in it.
What if I now did not want the database, what would I do please?

I must say that I found a similar problem with a Layout which I the wished to discard to use direct programming. On then deleting the layout file I got an error. I can find no reference, in the app, that needs to be removed.

Any help on both please?
 
Last edited:

enonod

Well-Known Member
Licensed User
Longtime User
Thank you Erel. Answer two is now clear. Answer one, the db was stored on File.DirInternal
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
When you store the database in DirInternal or DirDefaultExternal, one way to get rid of the database is to uninstall the application. It will remove the database automatically. If you want the database to be resident even after you uninstall the app, store it in DirRootExternal.
 
Upvote 0

enonod

Well-Known Member
Licensed User
Longtime User
Thank you very much, that is very clear. I think external is probably the better way to go, at least I can monitor it until finalisation.
 
Upvote 0
Top