May 02, 2013
Deletes a file in the isolated store.
Assembly: mscorlib (in mscorlib.dll)
The deleted file cannot be recovered once deleted.
File deletions are subject to intermittent failures because files can be in use simultaneously by operating system features such as virus scanners and file indexers. This is especially true for recently created files.
For these reasons, it is important to add code to the code block that handles the IsolatedStorageException to retry deleting the file or log a failure.
The following example deletes a file from the store. This example is part of a larger example provided for IsolatedStorageFile class.