View and purge unused old .NET environments$ dotnet-core-uninstall list ⋮ ⋮ then, after "whatif" e.g. # dotnet-core-uninstall remove --all-lower-patches --runtime # dotnet-core-uninstall remove --all-lower-patches --sdk # dotnet-core-uninstall remove 6.0.406 --sdk # dotnet-core-uninstall remove 5.0.408 --sdk # dotnet-core-uninstall remove 3.1.426 --sdk now, maybe as wanted? (2023-02) $ dotnet --info ⋮ $ dotnet-core-uninstall list This tool cannot uninstall versions of the runtime or SDK that are installed using zip/scripts. The versions that can be uninstalled with this tool are: .NET Core SDKs: 7.0.103 (x64) [Used by Visual Studio for Mac. Specify individually or use —-force to remove] .NET Core Runtimes: 7.0.3 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 6.0.14 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 5.0.17 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 3.1.32 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] More... |