how to completely remove an apt code example
Example 1: apt remove
sudo apt-get --purge autoremove packagename
Example 2: apt-get uninstall
sudo apt-get --purge autoremove pkg
sudo apt-get --purge autoremove packagename
sudo apt-get --purge autoremove pkg