how uninstall with apt remove or apt-get remove code example
Example 1: apt remove
sudo apt-get --purge autoremove packagename
Example 2: apt uninstall
sudo apt-get remove [pkg]
sudo apt-get --purge autoremove packagename
sudo apt-get remove [pkg]