clean uninstall ubuntu-desktop from ubuntu server

C++
$~: sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean
Source

Also in C++: