Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Exporters/MacroStabilityInwardsCalculationGroupExporter.cs =================================================================== diff -u -r274f73dd8fe56da899351e1d45e0d6eac42a5ae4 -r7f31ca0fcf345c32456094e6ede3e2fbb2c86ad9 --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Exporters/MacroStabilityInwardsCalculationGroupExporter.cs (.../MacroStabilityInwardsCalculationGroupExporter.cs) (revision 274f73dd8fe56da899351e1d45e0d6eac42a5ae4) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Exporters/MacroStabilityInwardsCalculationGroupExporter.cs (.../MacroStabilityInwardsCalculationGroupExporter.cs) (revision 7f31ca0fcf345c32456094e6ede3e2fbb2c86ad9) @@ -137,17 +137,7 @@ { if (Directory.Exists(tempFolderPath)) { - var di = new DirectoryInfo(tempFolderPath); - - foreach (FileInfo file in di.GetFiles()) - { - file.Delete(); - } - - foreach (DirectoryInfo dir in di.GetDirectories()) - { - dir.Delete(true); - } + Directory.Delete(tempFolderPath, true); } } }