Uninstalling Flex Gateway
You can uninstall Flex Gateway running as a Linux service, in a container, or in a Kubernetes cluster.
Uninstall Flex Gateway Running as a Linux Service
Flex Gateway can be uninstalled as any other package:
sudo apt remove -y flex-gateway
Uninstall Flex Gateway Running in a Docker Container
To uninstall Flex Gateway, stop and remove the Flex Gateway container:
-
Determine the Flex Gateway container ID by listing all the running containers:
docker ps
-
In the list of containers, note the container ID associated with the Flex Gateway container you want to uninstall.
-
Stop the Flex Gateway container:
docker stop <container id>
Replace
<container-id
with the container ID of the Flex Gateway container you want to stop: -
Remove the Flex Gateway container:
docker rm <container id>
Replace
<container-id
with the container ID of the Flex Gateway container you want to remove. The command permanently deletes the container and its associated resources. -
Optionally, remove the Flex Gateway container image:
docker rmi mulesoft/flex-gateway
-
To confirm that Flex Gateway is uninstalled, run the
docker ps
command again. The uninstalled container no longer appears in the list.
Uninstall Flex Gateway Running in a Kubernetes Cluster
To uninstall Flex Gateway running in a Kubernetes cluster:
-
Uninstall the Helm release. The following example removes a release called “my-release”:
helm delete my-release
Update my-release
to 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