[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Deletes a directory in the isolated storage scope.
Public Sub DeleteDirectory ( _
dir As String _
The store has been removed.
Unable to delete directory.
Isolated storage is disabled.
dir is badly formed.
The directory path is Nothing.
The store has been disposed.
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.
Dim dirDelete As String = Path.Combine("MyApp1", "SubDir3")
If store.DirectoryExists(dirDelete) Then
Catch ex As IsolatedStorageException