public void DeleteExportDirectory(string directory) { // Clean up export DirectoryInfo di = new DirectoryInfo(directory); di.Delete(true); }