remove application ubuntu code example
Example 1: remove apache2 from ubuntu
$ sudo systemctl stop apache2
$ sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common
$ sudo apt-get autoremove
$ which apache2
$ sudo systemctl start apache2
Example 2: ubuntu apt uninstall
sudo apt-get remove <application_name>
Example 3: ubuntu remove application
$ sudo apt-get remove package-name
Example 4: ubuntu remove application icon
remove application icon file from "/usr/share/applications" or "~/.local/share/applications".