how to delete folder and its contents using c# code example
Example 1: C# delete folder with all contents
System.IO.Directory.Delete("C:\TempTest", True)
Example 2: delete all dir content c#
new System.IO.DirectoryInfo(@"C:\Temp").Delete(true);
//Or
System.IO.Directory.Delete(@"C:\Temp", true);