System.IO.IsolatedStorage.IsolatedStorageFile.DeleteFile Method

Deletes a file in the isolated storage scope.

Syntax

public void DeleteFile (string file)

Parameters

file
The relative path of the file to delete within the isolated storage scope.

Remarks

The deleted file cannot be recovered once deleted.

The [<topic://cpcondeletingfilesdirectories>] example demonstrates the use of the IsolatedStorageFile.DeleteFile(string) method.

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0