This topic has not yet been rated - Rate this topic

IsolatedStorageFile.Remove Method

April 12, 2014

Removes the isolated storage scope and all its contents.

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)
public void Remove()
ExceptionCondition
IsolatedStorageException

The isolated store cannot be deleted.

Caution noteCaution:

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.


// remove the store
store.Remove();


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.