02-08-2011 01:36 PM
I've uninstalled my app and it seems like the data in "applicationStorageDirectory" is not wiped.
I have a SQLLite db that I'd like to wipe out. (I guess I could delete it through As3 but that's no fun)
02-08-2011 01:50 PM
there is a therad posted before that might help you out here:
It clears all data including anything in the storage im assuming. hope that helps. good luck!
02-08-2011 02:08 PM
How are you uninstalling, and are you certain the uninstall succeeded?
Are you possibly mixing up two "modes" of the app, one that you built with debug mode and the other without? They can install under separate folders.
Are you possibly writing your database somewhere else, without realizing it? Maybe temporary code that was writing to the shared folders, or to /accounts/devuser?
Do you know how to connect with SSH? You can now go into the app's own applicationStorageDirectory, if you packaged it with the "-devMode" option, and inspect any of its data. You can verify for yourself (as I just did) that a proper uninstall really does remove all traces of the app and its data.
02-08-2011 02:11 PM
I was uninstalling through the commandline.
It was uninstalling perfectly.
The mention above to check "delete" data on install seemed to work great. Thanks.
02-08-2011 02:49 PM
MikkoH, it wasn't clear that you were running on your host machine, not in the simulator. That check box doesn't apply to the simulator, I believe.
02-08-2011 02:51 PM
No I was running on the simulator and yes the checkbox works for the Simulator.
Oddly enough I'd assume the checkbox wouldn't work for simulator but the command line "uninstall' would work.
02-08-2011 02:53 PM
Interesting... I think what it must do is an actual uninstall followed by an install. With the checkbox disabled, I guess it's able to do just an install, which overwrites the applicationDirectory but not the applicationStorageDirectory.
Good to know... if using the command line, I'm sure "blackberry-deploy -uninstallApp" does remove the data as well.