How to remove the Gnome Amazon launcher package from Ubuntu 18.04 Bionic Beaver Desktop - LinuxConfig.org

The objective is to uninstall the Amazon package creating the left panel Amazon launcher icon.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-remove-the-gnome-amazon-launcher-package-from-ubuntu-18-04-bionic-beaver-desktop

Joseph

I want a way to remove it the way you can do by right-clicking and clicking “Remove from favorites”, but via the command line. Is there a way?

Chris Crisafulli -> Joseph

sudo dpkg-divert --divert /usr/share/applications/ubuntu-amazon-default.desktop.diverted \
--local \
--rename \
/usr/share/applications/ubuntu-amazon-default.desktop