public static bool TryDelete(string filename) { try { if (File.Exists(filename)) File.Delete(filename); return true; } catch { } return false; }