Computer Tips - RedHat: Remove all desktop packages (for headless operation)

Date: 2018dec20 OS: Linux Distro: RedHat/Fedora/CentOS Q. RedHat: Remove all desktop packages (for headless operation) A. This isn't official but it works.
dnf remove `rpm -qa | grep desktop`
We search for all packages with "desktop" in their name. Then remove them and everything that depends on them. When I run this command I get:
... Transaction Summary ================================================================================ Remove 702 Packages
Freed space: 2.6 G Is this ok [y/N]:
You can also remove everything to do with print with
dnf remove cups