I am building a wp7 app. I am using IsolatedStorage. Sometimes, for testing purposes, I'd like to erase everything my app has put into IsolatedStorage. Is there a way to do this for the emulator, or must I do it programmatically?
You'll lose all isolated storage for all apps by restarting the emulator.
Alternatively, you could uninstall the app from the emulator via tap and hold on the app list.
If you did want to do this programatically the code is very simple:
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
store.Remove();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With