How to Remove a .NET Runtime on Windows
In this article
To remove a .NET runtime on Windows, open Settings > Apps > Installed apps, find the entry that starts with "Microsoft .NET" and ends with the runtime version you want to remove (for example, "Microsoft .NET Runtime - 6.0.36 (x64)"), click the three-dot menu next to it, and choose Uninstall. Confirm the prompt and let the uninstaller finish. That is the whole process for a standard runtime installed by an installer. The steps below cover the exact clicks, how to tell runtimes apart, how to remove them via the command line when Settings will not cooperate, and what to do when the uninstaller fails or the runtime reappears.
Removing a .NET runtime frees disk space and clears out old versions you no longer need. It does not remove the .NET SDK, and it does not affect apps that target a different major version. Labels in Settings can differ slightly by Windows version and region, but the overall path is the same on Windows 10 and Windows 11.
What You'll Need
- Administrator rights on the PC. The uninstaller will prompt for elevation.
- The exact name of the runtime you want to remove. Check Settings > Apps > Installed apps first, or run
dotnet --list-runtimesin Command Prompt to see what is installed. - A note of which apps depend on that runtime. If you are unsure, check before uninstalling rather than after.
- Optional: the .NET uninstall tool if you need to remove multiple versions at once. It is an official Microsoft tool, but the Settings route is simpler for a single runtime.
Step-by-Step
- Identify the runtime you want to remove. Open Command Prompt and run
dotnet --list-runtimes. The output lists each installed runtime with its name, version, and architecture, for exampleMicrosoft.AspNetCore.App 6.0.36 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]. Note the exact name and version. If you only want to remove an old patch of a major version, note that too. - Open Installed apps. Press
Win + Ito open Settings, then go to Apps > Installed apps (on Windows 10 it is Apps > Apps & features). The list can take a moment to populate. - Search for the runtime. Type
.NETin the search box above the list. You will see entries such as Microsoft .NET Runtime - 6.0.36 (x64), Microsoft ASP.NET Core Runtime - 6.0.36 (x64), and Microsoft .NET SDK entries. The SDK is not a runtime; leave it alone unless you specifically want to remove it. - Confirm the entry matches what you noted. The version number in the app name should match the version from
dotnet --list-runtimes. If you have both x64 and x86 runtimes, they appear as separate entries. Remove only the one you intend to. - Start the uninstall. Click the three-dot menu (or right-click the entry) and choose Uninstall. On Windows 10, select the entry and click Uninstall below the list. Confirm the prompt.
- Wait for the uninstaller to finish. The .NET installer runs silently and usually completes in under a minute. Do not close the Settings window while it runs.
- Verify removal. Reopen Command Prompt and run
dotnet --list-runtimesagain. The version you removed should no longer appear. If the command itself is missing, that means no .NET runtime or SDK remains on the machine, which is expected if you removed the last one. - Test the apps that used it. Launch any application you know targets that runtime. If it fails with a message about a missing framework, reinstall the runtime or install the version the app requests.
If Settings will not list the runtime, or the uninstall button is greyed out, the runtime may have been installed by another installer (for example, bundled with an app) or the registry entry may be damaged. In that case, use the .NET uninstall tool from Microsoft, or run the original installer in repair mode first. Do not delete folders under C:\\Program Files\\dotnet by hand unless you have no other option; manual deletion leaves registry entries and can break the dotnet command.
Common Mistakes
- Removing the SDK instead of the runtime. The SDK includes runtimes, but uninstalling the SDK does not remove standalone runtimes, and uninstalling a runtime does not remove the SDK. Check the entry name carefully.
- Removing a runtime an app still needs. Apps built for .NET 6 will not run on .NET 8 without a compatibility setting or a newer build. If an app stops launching after removal, reinstall the runtime it asks for.
- Deleting the
dotnetfolder manually. This bypasses the uninstaller and leaves stale registry keys. Use Settings or the official uninstall tool instead. - Assuming one uninstall removes all versions. Each major version and architecture is a separate entry. Removing 6.0 does not touch 8.0.
- Ignoring the x86/x64 split. A 32-bit app may need the x86 runtime even on a 64-bit PC. Removing the x86 entry can break older apps.
Tips
- Run
dotnet --infofor a fuller picture, including which runtime is used by default and where it is installed. - If you are cleaning up a development machine, remove old SDKs first, then old runtimes. The SDK installer often bundles a matching runtime.
- Keep at least one supported runtime installed if you rely on .NET apps. Removing every runtime will break any app that needs one.
- Use the official .NET uninstall tool when you need to remove several versions in one pass; it is designed for exactly that and avoids clicking through each entry.
- After removal, run
dotnet --list-runtimesonce more to confirm the list matches what you expect.
Troubleshooting
The uninstaller fails or hangs. Restart the PC and try again from Settings. If it still fails, run the original .NET installer for that version and choose Repair, then uninstall. If Repair is unavailable, use the .NET uninstall tool.
The runtime is still listed after uninstalling. Check whether a second entry exists for the other architecture (x86 vs x64). Also confirm you removed the runtime, not just the SDK. If the entry remains with no matching folder, the registry entry is stale; the .NET uninstall tool can clean it.
An app now says it needs a .NET runtime. Reinstall the exact major version the app requests from the official Microsoft download page. Do not install a newer major version and assume it will work; .NET does not roll forward across major versions by default.
The dotnet command is not recognized. This means no runtime or SDK is installed, or the PATH entry was removed. Reinstall the runtime you need, or repair the installation.
Settings shows the runtime but the Uninstall option is missing. The entry may be managed by another installer. Use the .NET uninstall tool or the original installer's repair/remove option.
Frequently Asked Questions
Does removing a .NET runtime affect other apps?
Only apps that target that specific runtime version. Apps built for a different major version are unaffected.
Can I remove all .NET runtimes?
Yes, but any app that depends on .NET will stop working until you reinstall a runtime. Keep at least one supported version if you use such apps.
Is the .NET SDK the same as the runtime?
No. The SDK is for building and running apps during development and includes runtimes, but it is a separate entry in Installed apps.
How do I know which runtime version to remove?
Run dotnet --list-runtimes and match the version to the entry in Settings. Remove only versions you no longer need.
Will uninstalling a runtime delete my project files?
No. The uninstaller only removes the runtime files and registry entries. Your projects and source code are untouched.
Can I reinstall a runtime after removing it?
Yes. Download the same version from the official Microsoft .NET site and run the installer. Your apps will work again once it is installed.