how to remove gui from ubuntu server code example
Example: clean uninstall ubuntu-desktop from ubuntu server
$~: sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean
$~: sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean