Android Question Delete all files when you uninstall the program

alfaiz678

Active Member
Licensed User
Hi
I want to delete these files
KeyValueStore

from the procedure
kvs.Initialize(File.DirInternal, "LoginSave")

Delete all files when you uninstall the program
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Hi
I want to delete these files
KeyValueStore

from the procedure
kvs.Initialize(File.DirInternal, "LoginSave")

Delete all files when you uninstall the program
When an app is removed all files associated with it are also removed (assuming the app hasn't saved any data outside of its own directories). The only exception to this might be if the device has auto backup turned on, in which case the app data & settings may be backed up on the user's Google Drive account.

- Colin.
 
Upvote 0

yfleury

Active Member
Licensed User
Longtime User
Add this in manifest
B4X:
SetApplicationAttribute(android:allowBackup, "false")

Then all files from app will be deleted when app was uninstall
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Add this in manifest
B4X:
SetApplicationAttribute(android:allowBackup, "false")

Then all files from app will be deleted when app was uninstall
True - but be aware that none of the settings or data associated with the app will be backed up for any users, which means that if for some reason they have to uninstall & reinstall it, they will lose that data permanently.

- Colin.
 
Upvote 0
Top