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