Un Innstall 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