@Aravisian recently contributed this great tutorial for the basic commands in Linux that would make your life easy:
I quote the relevant section:
Command to remove a package with APT (Applies to apt-get and aptitude the same way):
sudo apt remove package-name
Command to remove a package with APT and remove any configuration files (Applies to apt-get and aptitude the same way):
sudo apt remove --purge package-name
3 Likes