ONUNSTALL DOT NET UBUNTU

# get installed dotnet information
dotnet --info
# remove sdk and runtime based on installed version ( in my case 5.0 )
sudo apt remove --purge dotnet-sdk-5.0
sudo apt remove --purge dotnet-runtime-5.0
Fahim Foysal