How to completely remove unneeded Desktop Environments

Asked by Edmond Condillac

My desktop environments have increased to nearly 8 login possibilities. Of these, only LXDE is needed. The others are various GNOME(classic, Openbox) KDE(Plasma and Openbox) and Lubuntu(Notebook).
It would be most appreciated if these extra environments could be uninstalled, please.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

sudo apt-get --purge remove gnome-panel

sudo apt-get --purge remove `dpkg -l | grep kde | awk {'print $2'}`

sudo apt-get --purge autoremove

Should do it.

Revision history for this message
Edmond Condillac (econ22) said :
#2

Thanks actionparsnip, that solved my question.