The article linked below provides the general process of uninstalling Linux-based Gateways or Relays.
If you need to remove the StrongDM Gateway/Relay software from your server and do not intend to destroy the server itself, follow the instructions provided.
Uninstall Linux-Based Gateways and Relays