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)
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0