471,853 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

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 3634

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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.