Apologies if this seems straight forward but I've recently downloaded XFCE to replace LXDE environment.
I did this by using
sudo apt-get install xfce4
and following all the instructions.
Then to remove LXDE I carried out:
sudo apt-get --purge remove lxde
sudo apt-get clean
My problem lies that whenever I run
startx
it still opens and runs LXDE? I know that I should be running
startxfce4
but I want to know how to completely remove LXDE? and understand how startx works?
Edit: Also how do I modify the startx file so that I can choose (if both are installed) which desktop environment I want startx to run?