I wanted a window manager, so I installed xfce4. I used
sudo apt-get install xfce4
to do this. To remove it, I used
sudo apt-get remove --purge xfce4
which didn't work, and neither did
sudo dpkg purge xfce4
as evidenced 1) startx
launches the xfce desktop, and 2) apt-cache search xfce4
returns a long list of installed packages.
So, how can I get rid of xfce4 and it's dependencies?
apt-cache search
doesn't just show what packages are installed. It also show what packages can be installed in the future.