public static void DeleteIfExists(string fullPathToFile) { if (System.IO.File.Exists(fullPathToFile)) { System.IO.File.Delete(fullPathToFile); } }