Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall dotnetcli from command line

Im using the formula described here (https://learn.microsoft.com/en-us/dotnet/core/versions/remove-runtime-sdk-versions?tabs=macos) to uninstall dotnet core sdk from macos. I followed the steps and after finishing and verifying there is not an sdk nor a runtime, the command dotnet is still valid in the terminal and is referring that is valid at hosting. Any ideas around how to remove all the sdk, cli from my laptop?

like image 297
juanramirezcastaneda Avatar asked Aug 13 '26 06:08

juanramirezcastaneda


1 Answers

If you want to remove all versions and components of .NET Core, just delete the main dotnet directory:

sudo rm -rf /usr/local/share/dotnet
like image 162
omajid Avatar answered Aug 15 '26 15:08

omajid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!