---
schema_version: "1"
id: d61092ca98c729b5b7346a5c9b4a30e12a08752067ce9c0190d6667573f08941
title: Uninstall Self-Managed Omni Gateway
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/latest/gateway-uninstall.md
canonical_url: https://docs.mulesoft.com/gateway/latest/gateway-uninstall
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 61ef2052c35b12aa562d5dd735d097536e89ab54246dba0fd0b37abddfdd27e6
description: MuleSoft Documentation Site
release: "1.14"
latest: true
---
---
product: Omni Gateway
version: 1.14
is-latest-version: true
---

# Uninstall Self-Managed Omni Gateway

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

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

<table><colgroup><col> <col> <col></colgroup><tbody><tr><td><div><div><p><span><a href="#linux"><img src="https://docs.mulesoft.com/gateway/latest/_images/install-linux-logo.png" alt="20%" width="20%"></a></span></p></div></div></td><td><div><div><p><span><a href="#docker"><img src="https://docs.mulesoft.com/gateway/latest/_images/install-docker-logo.png" alt="25%" width="25%"></a></span></p></div></div></td><td><div><div><p><span><a href="#kubernetes"><img src="https://docs.mulesoft.com/gateway/latest/_images/install-kubernetes-logo.png" alt="20%" width="20%"></a></span></p></div></div></td></tr><tr><td><div><div><p><a href="#linux">Uninstall Omni Gateway Running as a Linux Service</a></p></div></div></td><td><div><div><p><a href="#docker">Uninstall Omni Gateway Running in a Docker Container</a></p></div></div></td><td><div><div><p><a href="#kubernetes">Uninstall Omni Gateway Running in a Kubernetes Cluster</a></p></div></div></td></tr></tbody></table>

## Uninstall Omni Gateway Running as a Linux Service

Omni Gateway can be uninstalled as any other package:

```ssh
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:

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

    ```ssh
    docker ps
    ```

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

3.  Stop the Omni Gateway container:

    ```ssh
    docker stop <container id>
    ```

    Replace `<container-id` with the container ID of the Omni Gateway container you want to stop:

4.  Remove the Omni Gateway container:

    ```ssh
    docker rm <container id>
    ```

    Replace `<container-id` with the container ID of the Omni Gateway container you want to remove.
    The command permanently deletes the container and its associated resources.

5.  Optionally, remove the Omni Gateway container image:

    ```ssh
    docker rmi mulesoft/flex-gateway
    ```

6.  To confirm that Omni Gateway is uninstalled, run the `docker ps` command 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:

1.  Uninstall the Helm release. The following example removes a release called “my-release”:

    ```ssh
    helm delete my-release
    ```

    > [!NOTE] 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:

    ```ssh
    kubectl delete namespace gateway
    ```

3.  Delete the custom resource definitions:

    ```ssh
    kubectl delete crds \
         apiinstances.gateway.mulesoft.com \
         configurations.gateway.mulesoft.com \
         extensions.gateway.mulesoft.com \
         policybindings.gateway.mulesoft.com \
         services.gateway.mulesoft.com
    ```
