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]: