System.IO.IsolatedStorage.IsolatedStorageFile.DeleteDirectory Method

Deletes a directory in the isolated storage scope.

Syntax

public void DeleteDirectory (string dir)

Parameters

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

Remarks

A directory must be empty before it is deleted. The deleted directory cannot be recovered once deleted.

The [<topic://cpcondeletingfilesdirectories>] example demonstrates the use of the IsolatedStorageFile.DeleteDirectory(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