how to uninstall apps in ubuntu code example

Example 1: ubuntu apt uninstall

sudo apt-get remove <application_name>

Example 2: how to completely remove apps ubuntu package

$ sudo apt-get remove package-name

Example 3: how to completely remove apps ubuntu package

$ sudo apt-get purge package-name

Example 4: ubuntu remove application icon

remove application icon file from "/usr/share/applications" or "~/.local/share/applications".

Example 5: how to completely remove apps ubuntu package

$ sudo apt-get autoremove