Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erase IsolatedStorage from Windows Phone 7 emulator?

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?

like image 217
Nick Heiner Avatar asked Nov 03 '10 02:11

Nick Heiner


2 Answers

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.

like image 158
Mick N Avatar answered Jan 04 '23 12:01

Mick N


If you did want to do this programatically the code is very simple:

using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
    store.Remove();
}
like image 45
Matt Lacey Avatar answered Jan 04 '23 12:01

Matt Lacey