public void DeleteFolder(string folder) { if (Directory.Exists(folder)) { Directory.Delete(folder, true); } }