Removing Emacs completely

I installed Emacs using sudo apt-get install emacs, and then removed it using sudo apt-get --purge remove emacs.

I also checked for any leftovers in the usual places like usr/share/applications etc.

The sudo apt-cache policy emacs says I don't have it installed. But typing emacs on the terminal opens it up!

And below is a screenshot of Synaptics showing me that emacs is installed...

Any advice as to how completely remove it?

I usually type sudo updatedb after the purge and locate package to see what’s left … and I keep deleting. Then sudo updatedb; locate package again, delete some more till everything is gone. Seems emacs installs emacs25 as the binary. You may have to purge emacs25 HTH

I purged the emacs25 with same command…