Uninstalling Flex Gateway
You can uninstall Flex Gateway as a Linux service, in a Docker container, or from a Kubernetes cluster.
Uninstall as a Linux Service
Flex Gateway can be uninstalled as any other package:
sudo apt remove -y flex-gateway
Uninstall in a Docker Container
If you are finished with your Flex Gateway instance in a Docker Container, stop and remove the container.
-
Determine the container ID.
docker ps
-
Stop the container:
docker rm <container id>
-
Optionally, remove the Docker image as well:
docker rmi mulesoft/flex-gateway
Uninstall from a Kubernetes Cluster
To uninstall Flex Gateway from 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