Contact Us 1-800-596-4880

Uninstalling Flex Gateway

You can uninstall Flex Gateway running as a Linux service, in a container, or in a Kubernetes cluster.

20%

25%

20%

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:

  1. Determine the Flex Gateway container ID by listing all the running containers:

    docker ps
  2. In the list of containers, note the container ID associated with the Flex Gateway container you want to uninstall.

  3. 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:

  4. 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.

  5. Optionally, remove the Flex Gateway container image:

    docker rmi mulesoft/flex-gateway
  6. 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:

  1. 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 command helm list -A.
  2. Delete the release namespace if one was specified:

    kubectl delete namespace gateway
  3. 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