Hi @Glenn Maxwell
is the below syntax correct. dotnet-core-uninstall remove --sdk 3.1 dotnet-core-uninstall remove --runtime 2.1 dotnet-core-uninstall remove --aspnet-runtime 2.1
The commands are correct. But using the above command, it will show the yes/no confirmation.
If you want to remove the SDK and Runtime without requiring yes or no confirmation, you can use the following commands:
To remove the SDK and Runtime via the .NET uninstall tool (dotnet-core-uninstall
), the commands should like this:
dotnet-core-uninstall remove [options] [<VERSION>...]
For example: In my machine, I installed 2.1.818 SDK and 2.1.30 Runtime.
To remove the 2.1.818 version SDK, we can use dotnet-core-uninstall remove 2.1.818 --sdk --yes --verbosity q
To remove the 2.1.30 Runtimes, we can use dotnet-core-uninstall remove 2.1.30 --aspnet-runtime --yes --verbosity q
The result as below:
More detail information about the commands, see .NET uninstall tool.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion