Skip to content

Instantly share code, notes, and snippets.

@sandrovicente
Created July 3, 2016 21:37
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save sandrovicente/5590f5ac993d9d7fef038fd2858efcc3 to your computer and use it in GitHub Desktop.
Save sandrovicente/5590f5ac993d9d7fef038fd2858efcc3 to your computer and use it in GitHub Desktop.
Steps to uninstall a DotNet CLI version on Mac OS X
# delete the dotnet folder under /usr/local/share/dotnet
1. cd /usr/local/share/dotnet && ls
2. sudo rm -rf dotnet
# delete the dotnet reference file at /etc/paths.d/dotnet
1. cd /etc/paths.d && ls
2. sudo rm dotnet
@MartinPereiraP
Copy link

Thanks+++

@cblte
Copy link

cblte commented Apr 12, 2023

Official way to uninstall 2023 https://learn.microsoft.com/en-gb/dotnet/core/additional-tools/uninstall-tool?tabs=macos

It removes the SDKs and the Runtime, but not the /usr/local/share/dotnet folder. This you have to do manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment