Directory.Delete : Directory « System.IO « VB.Net by API






Directory.Delete

  
Imports System.IO

Module Module1


    Sub Main()
        Try
            Directory.Delete("C:\Sample01", True)
        Catch E As Exception
            Console.WriteLine("Error deleting directory C:\Sample01")
            Console.WriteLine("Error {0}", E.Message)
        End Try
    End Sub

End Module

   
    
  








Related examples in the same category

1.Directory.CreateDirectory
2.Directory.Exists
3.Directory.GetCurrentDirectory()
4.Directory.GetDirectoryRoot
5.Directory.GetFileSystemEntries
6.Directory.GetLogicalDrives()
7.Directory.GetParent
8.Directory.Move
9.Directory.SetCurrentDirectory