IsolatedStorageFile.Remove Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Removes the isolated storage scope and all its contents.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| IsolatedStorageException | The isolated store cannot be deleted. |
Caution: |
|---|
This method irrevocably removes the entire isolated storage for the current users's application and all its directories and files. |
If any of the directories or files in the store are in use, the removal attempt for the store fails. Any subsequent attempts to modify the store throw an IsolatedStorageException exception. In this case, you must ensure that the files or directories are explicitly deleted.
The following example removes an isolated store. This example is part of a larger example provided for IsolatedStorageFile class.
Caution: