How to remove old .NET Core SDKs?
See original GitHub issueAfter installing .NET Core 2.1 SDK (great job, BTW), dotnet --info
showed me I had all this installed:
.NET Core SDKs installed:
2.1.4 [C:\Program Files\dotnet\sdk]
2.1.100-preview-007328 [C:\Program Files\dotnet\sdk]
2.1.100-preview-007341 [C:\Program Files\dotnet\sdk]
2.1.100-preview-007354 [C:\Program Files\dotnet\sdk]
2.1.100-preview-007363 [C:\Program Files\dotnet\sdk]
2.1.100-preview-007391 [C:\Program Files\dotnet\sdk]
2.1.100 [C:\Program Files\dotnet\sdk]
2.1.101 [C:\Program Files\dotnet\sdk]
2.1.102 [C:\Program Files\dotnet\sdk]
2.1.103 [C:\Program Files\dotnet\sdk]
2.1.104 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007480 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007509 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007513 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007517 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007570 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007576 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007587 [C:\Program Files\dotnet\sdk]
2.1.200-preview-007589 [C:\Program Files\dotnet\sdk]
2.1.200 [C:\Program Files\dotnet\sdk]
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.300 [C:\Program Files\dotnet\sdk]
How do I remove the old cruft (especially the previews)?
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Remove the .NET runtime and SDK
To remove a Snap package, use the snap remove <package> command. For example, to remove .NET Runtime 3.1, use snap remove dotnet-runtime-31 ....
Read more >Removing old version of .NET
To remove the unuseful version of the SDKs and runtimes, you can use the dotnet-core-uninstall tool. It's not installed by default but you ......
Read more >How to uninstall .NET SDK previews and older versions ...
I'd like to uninstall .NET 5 and .NET 6 previews - and just keep the latest .NET 6. However, the uninstall utility only...
Read more >How to remove old .NET Core SDKs? · Issue #2295
The .NET Core command-line (CLI) tools repository provides uninstall scripts. Linux (yum): dotnet-uninstall-rpm-packages.sh ...
Read more >Clean up some .NET Clutter
Uninstall the .NET SDKs and RuntimePermalink ... There are quite a few different ways to uninstall the .NET SDKs and Runtime's. For each...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And here is a script function that attempts to silently uninstall (except for UAC prompt) outdated SDKs, keeping only the latest patch version of each (unless using the -All param). Dry run with
Uninstall-DotNetSdk -WhatIf
orUninstall-DotNetSdk -WhatIf -All
.How do we do this for Mac or Linux?