public static bool Delete(string file) { if (File.Exists(file)) { File.Delete(file); if (!File.Exists(file)) return true; } return false; }