public static void ForceDeleteDirectory(string path) { if (Directory.Exists(path)) { EmptyDirectory(path); Directory.Delete(path); } }