how to delete existing file and create new file in c# code example Example: c# how to delete a file File.Delete(@"C:\Temp\Data\Authors.txt");