The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Deletes a directory in the isolated storage scope.
public void DeleteDirectory(
- Type: System.String
The relative path of the directory to delete within the isolated storage scope.
A directory must be empty before it is deleted. The deleted directory cannot be recovered once deleted.
The following example deletes a directory if it exists.
// Delete a specific directory.
string dirDelete = Path.Combine("MyApp1", "SubDir3");
catch (IsolatedStorageException ex)
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0
(1500 characters remaining)
Thank you for your feedback