Run the following commands to uninstall mono and mono complete from Ubuntu
sudo apt remove mono-complete
sudo apt-get purge libmono* cli-common mono-runtimeYou can verify whether the package is uninstalled by running the following command
dpkg-query -l mono-completeand it will give you the following output:
dpkg-query: no packages found matching mono-complete