Use IsolatedStorageFile.DeleteFile, DeleteDirectory : IsolatedStorageFile « Stream File « VB.Net Tutorial






Imports System.IO.IsolatedStorage

Public Class Tester
    Public Shared Sub Main

        Dim myIsoStore As IsolatedStorageFile

        Try
            myIsoStore.CreateDirectory("oldDir")

            Dim myIsoStroeStream As New IsolatedStorageFileStream("oldDir/oldFile", IO.FileMode.Create.Create, myIsoStore)
            myIsoStroeStream.Close()
        
        
           myIsoStore.DeleteDirectory("oldDir")
           myIsoStore.DeleteFile("oldeDir/oldFile")
        Catch ex As IsolatedStorageException
            Console.WriteLine(ex.Message)
        End Try


    End Sub
End Class








13.28.IsolatedStorageFile
13.28.1.Create IsolatedStorageFileStream
13.28.2.Create IsolatedStorageFile
13.28.3.Get Directory and Files in an IsolatedStorageFile
13.28.4.Use IsolatedStorageFile.DeleteFile, DeleteDirectory