Uninstall Self-Managed Omni Gateway
You can uninstall Omni Gateway running as a Linux service, in a container, or in a Kubernetes cluster.
Uninstall Omni Gateway Running as a Linux Service
Omni Gateway can be uninstalled as any other package:
sudo apt remove -y flex-gateway
Uninstall Omni Gateway Running in a Docker Container
To uninstall Omni Gateway, stop and remove the Omni Gateway container:
-
Determine the Omni Gateway container ID by listing all the running containers:
docker ps -
In the list of containers, note the container ID associated with the Omni Gateway container you want to uninstall.
-
Stop the Omni Gateway container:
docker stop <container id>Replace
<container-idwith the container ID of the Omni Gateway container you want to stop: -
Remove the Omni Gateway container:
docker rm <container id>Replace
<container-idwith the container ID of the Omni Gateway container you want to remove. The command permanently deletes the container and its associated resources. -
Optionally, remove the Omni Gateway container image:
docker rmi mulesoft/flex-gateway -
To confirm that Omni Gateway is uninstalled, run the
docker pscommand again. The uninstalled container no longer appears in the list.
Uninstall Omni Gateway Running in a Kubernetes Cluster
To uninstall Omni Gateway running in a Kubernetes cluster:
-
Uninstall the Helm release. The following example removes a release called “my-release”:
helm delete my-releaseUpdate my-releaseto the release you have running. To see a list of all releases, use the commandhelm list -A. -
Delete the release namespace if one was specified:
kubectl delete namespace gateway -
Delete the custom resource definitions:
kubectl delete crds \ apiinstances.gateway.mulesoft.com \ configurations.gateway.mulesoft.com \ extensions.gateway.mulesoft.com \ policybindings.gateway.mulesoft.com \ services.gateway.mulesoft.com






