469,282 Members | 2,000 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

How to clear isolated storage

WinForms .NET 3.5 application creates files using UserSettings.Store
object.

UserSettings.RemoveAll() does not remove those files.

Directory
C:\Users\user\AppData\Local\IsolatedStorage\kpfhj5 go.0xp\drvowkmz.al1\Url.uxurxejkalg3optycd32sijndo eqvbiy\Url.4d3tujmqjjalo23wq4rjcu1tkcry2s2d\Files

still contains created files.

How to remove all files in code from isolated storage ?

Andrus.
public static class UserSettings
{
static IsolatedStorageFile Store
{
get
{
return IsolatedStorageFile.GetUserStoreForDomain();
//GetUserStoreForAssembly();
}
}

public static void RemoveAll()
{ // todo: explore why this does not delete isolated storage files:
Store.Remove();
IsolatedStorageFile.Remove(IsolatedStorageScope.Do main);
IsolatedStorageFile.Remove(IsolatedStorageScope.Ma chine);
IsolatedStorageFile.Remove(IsolatedStorageScope.As sembly);
IsolatedStorageFile.Remove(IsolatedStorageScope.Ap plication);
}
}

Jul 17 '08 #1
0 3548

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jody Gelowitz | last post: by
3 posts views Thread by gani | last post: by
1 post views Thread by malcolm | last post: by
reply views Thread by Namratha Shah \(Nasha\) | last post: by
7 posts views Thread by Jon Berry | last post: by
3 posts views Thread by U.C. | last post: by
reply views Thread by CodeMonkey | last post: by
2 posts views Thread by Andrus | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.