To uninstall the desktop environment perform the following steps:
Log in as root, then open a terminal window.
Run the following command: /usr/sbin/remove-gnome