uninstall in apt code example
Example 1: ubuntu apt uninstall
sudo apt-get remove <application_name>
Example 2: sudo apt-get --purge remove
# remove an application using Advanced Package Tool command
sudo apt-get --purge remove <application_name>
Example 3: apt uninstall
sudo apt-get remove [pkg]