If you installed at the shell with
apt install package
then uninstall at the shell with
apt remove package
(remove software but keep any related system configuration or settings)
or
apt purge package
(remove software and related system configuration or settings)