You can uninstall Maya on Linux using dnf remove. You must have superuser privileges to uninstall Maya.
Use
dnf remove to remove Bifrost, Substance, and Maya:
sudo dnf remove <Maya> sudo dnf remove <Bifrost> sudo dnf remove <Substance>
To get the exact package name to remove, use dnf list.
This process does not remove the Maya or Bifrost directories.