Removing Old Version Of .NET - DEV Community
Có thể bạn quan tâm
DEV Community
FollowA space to discuss and keep up software development and manage your software career
Future
FollowNews and discussion of science and technology such as AI, VR, cryptocurrency, quantum computing, and more.
Open Forem
FollowA general discussion space for the Forem community. If it doesn't have a home elsewhere, it belongs here
Gamers Forem
FollowAn inclusive community for gaming enthusiasts
Music Forem
FollowFrom composing and gigging to gear, hot music takes, and everything in between.
Vibe Coding Forem
FollowDiscussing AI software development, and showing off what we're building.
Popcorn Movies and TV
FollowMovie and TV enthusiasm, criticism and everything in-between.
DUMB DEV Community
FollowMemes and software development shitposting
Design Community
FollowWeb design, graphic design and everything in-between
Security Forem
FollowYour central hub for all things security. From ethical hacking and CTFs to GRC and career development, for beginners and pros alike
Golf Forem
FollowA community of golfers and golfing enthusiasts
Scale Forem
FollowFor engineers building software at scale. We discuss architecture, cloud-native, and SRE—the hard-won lessons you can't just Google
Crypto Forem
FollowA collaborative community for all things Crypto—from Bitcoin to protocol development and DeFi to NFTs and market analysis.
Forem Core
FollowDiscussing the core forem open source software project — features, bugs, performance, self-hosting.
Parenting
FollowA place for parents to the share the joys, challenges, and wisdom that come from raising kids. We're here for them and for each other.
Maker Forem
FollowA community for makers, hobbyists, and professionals to discuss Arduino, Raspberry Pi, 3D printing, and much more.
HMPL.js Forem
FollowFor developers using HMPL.js to build fast, lightweight web apps. A space to share projects, ask questions, and discuss server-driven templating
Dropdown menu Dropdown menu.NET Runtime updates are compatible with the latest major version of the .NET SDKs. This means that you can remove safely the older versions.
You can see the current SDKs and runtimes are installed on you machine with the following commands:
dotnet --list-sdks dotnet --list-runtimes Enter fullscreen mode Exit fullscreen mode

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 can download the installer from this link: https://github.com/dotnet/cli-lab/releases
Once you've installed it, you can use the following command to see the list with the .NET SDKs and runtimes that can be removed.
dotnet-core-uninstall list Enter fullscreen mode Exit fullscreen mode
You can also perform a what-if analysis of an uninstall. This command displays the output of an uninstall task, without performing that.
dotnet-core-uninstall whatif --all

At the end, if you are convinced of the result, you can perform the real uninstall command:
dotnet-core-uninstall remove --all-previews-but-latest Enter fullscreen mode Exit fullscreen modeFor instance, this command removes .NET SDKs and runtimes marked as previews except the one highest preview.
I use this command every month. I have a task on my calendar to remind me this important task. A clean machine is a quick machine.
You can find all the commands and all the options in the official documentation at this link: https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool?tabs=windows
Happy cleaning!
Templates let you quickly answer FAQs or store snippets for re-use.
Submit Preview Dismiss Collapse Expand
gendalv Follow - Joined Jul 12, 2022
- Copy link
- Hide
doesn't work for 5.0.10
Code of Conduct • Report abuseAre you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Emanuele Bartolesi Follow 🏆 Microsoft MVP (12x) & GitHub Star (4x) ⭐ 👨🎓 LinkedIn Technical Instructor 🎓 - Location Zurich, Switzerland
- Pronouns he/him
- Work Cloud Architect
- Joined Jun 22, 2018
We're a place where coders share, stay up-to-date and grow their careers.
Log in Create accountTừ khóa » Gỡ Bỏ Sdk
-
Remove The .NET Runtime And SDK - Microsoft Docs
-
How To Uninstall SDK Tools?
-
Gỡ Cài đặt Các Phiên Bản SDK Android Cũ - HelpEx
-
Uninstalling The SDK And Runtime Environment - IBM
-
How To Uninstall .NET SDK Previews And Older Versions When ...
-
Sdk/dotnet-uninstall- At Main - GitHub
-
[SDK Uninstallation] When Uninstalling SDK, "ng ...
-
Removing Windows SDK From Installation Does Not Actually Remove ...
-
How To Remove .NET Runtime And SDK On Mac - IT Nota
-
C# - 복수 설치된 .NET Core SDK 삭제 - Jacking75
-
Uninstall (remove) The C SDK | New Relic Documentation
-
How To Uninstall Android SDK Application/Software On Your Mac