Workstation-product-environment to server-product-environment

Hello,

What is the best way to switch from a workstation edition to a server edition without doing a complete reinstall.
What I have been looking at is doing
sudo dnf group install server-product-environment && sudo dnf group remove workstation-product-environment

But is there an easier way to switch to do that switch?
The reason I’m trying to switch is because I’ve had some trouble with have a DE on my server. But now that I’ve become more accustomed to using CLI I want to switch too a completely headless, instead of the sudo headless I have now with a dummy tool to fake a screen for the DE.

Kind Regards,
Vesdia

NVM I found this topic now that seem to solve it.