c# delete directory and all files code example Example: C# delete folder with all contents System.IO.Directory.Delete("C:\TempTest", True)