c# delete directory and files code example
Example 1: c# how to delete a file
File.Delete(@"C:\Temp\Data\Authors.txt");
Example 2: delete all dir content c#
new System.IO.DirectoryInfo(@"C:\Temp").Delete(true);
//Or
System.IO.Directory.Delete(@"C:\Temp", true);