diff --git a/Oqtane.Server/Infrastructure/InstallationManager.cs b/Oqtane.Server/Infrastructure/InstallationManager.cs index 259048bc..22a8176d 100644 --- a/Oqtane.Server/Infrastructure/InstallationManager.cs +++ b/Oqtane.Server/Infrastructure/InstallationManager.cs @@ -211,7 +211,7 @@ namespace Oqtane.Infrastructure File.Delete(filepath); if (!Directory.EnumerateFiles(Path.GetDirectoryName(filepath)).Any()) { - Directory.Delete(Path.GetDirectoryName(filepath)); + Directory.Delete(Path.GetDirectoryName(filepath), true); } } }