How do I remove XFCE from my computer?

My computer is overheating because I got too many desktop environments installed like: MATE, Cinnamon and XFCE. I uninstalled them, but XFCE failed to uninstall. I get this error.

 sudo apt-get purge xfce4
    Reading package lists... Error!
    E: Problem syncing the file - sync (5: Input/output error)
    E: The package lists or status file could not be parsed or opened.

Try this

sudo apt-get purge xfconf xfce4-utils xfwm4 xfce4-session xfdesktop4 exo-utils xfce4-panel xfce4-terminal  thunar

followed by

sudo apt autoremove

Try these

sudo apt-get -f install
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update

Now

sudo apt-get purge xfce4

In my case (Mint with cinnamon and XFCE) I did:

sudo apt-get -f install
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update

THEN:

sudo apt-get purge xfce4  # failed

THEN:

sudo apt-get purge xfconf
sudo apt-get autoremove
sudo apt-get -f install
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update

From this link

You can run the following to remove xfce from your computer, completely:

dpkg -l | grep .xfce. | xargs sudo apt-get purge --auto-remove --yes