dotnet nuget locals --clear all
: This will remove ALL packages in your nuget cache from your machine, as a result other projects might fail to restore afterwards if the package is not available in the original download location
rm -rf ~/.templateengine
: This will remove all templates you installed that didn't come with the SDK
rm -rf ~/.dotnet
: This will remove all files dotnet creates during the first run experience, tools installs, etc.