diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index b39a7c54b6..a3d59068b6 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -797,7 +797,7 @@ public ConcurrentDictionary uninstall_run(ChocolateyConfi } var packageVersionsToRemove = installedPackageVersions.ToList(); - if (!config.AllVersions) + if (!config.AllVersions && installedPackageVersions.Count > 1) { if (config.PromptForConfirmation) {