# if pip installed then use 'pip uninstall packagename' sudo apt-get --purge autoremove packagename # --auto-remove removes orphaned dependencies # --purge removes config files # remove leaves dependencies and configs