---
title: Uninstall infrastructure integrations
source: https://docs.newrelic.com/docs/infrastructure/infrastructure-agent/update-or-uninstall/uninstall-infrastructure-integrations
---

[Uninstalling the infrastructure agent](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/installation/uninstall-infrastructure-agent-or-integrations) does not directly affect any of your [infrastructure integrations](https://docs.newrelic.com/docs/infrastructure/infrastructure-integrations/getting-started/connect-aws-integrations-infrastructure): If you uninstall the agent, your integrations will remain. Similarly, if you [disable or uninstall your integrations](#uninstall-integrations), the infrastructure agent will remain.

To uninstall any of your integrations, follow the procedure corresponding to the type of integration.

## On-host integrations [#uninstall-on-host]

If you used the integrations package, [see the integrations package instructions](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/installation/uninstall-infrastructure-agent-or-integrations#uninstall-package).

Here are some examples:

**Apache**

| **Package manager**                 | **Uninstall instructions**         |
| ----------------------------------- | ---------------------------------- |
| apt (Debian or Ubuntu)              | `sudo apt-get remove nri-apache`   |
| yum (Amazon Linux, CentOS, or RHEL) | `sudo yum remove nri-apache`       |
| zypper (SLES)                       | `sudo zypper -n remove nri-apache` |

**Cassandra**

| **Package manager**                 | **Uninstall instructions**            |
| ----------------------------------- | ------------------------------------- |
| apt (Debian or Ubuntu)              | `sudo apt-get remove nri-cassandra`   |
| yum (Amazon Linux, CentOS, or RHEL) | `sudo yum remove nri-cassandra`       |
| zypper (SLES)                       | `sudo zypper -n remove nri-cassandra` |

**Kubernetes**

Ensure you are using the appropriate context in the machine where you will run Helm and `kubectl`:

You can check the available contexts with:

````sh
kubectl config get-contexts
```

And switch to the desired context using:

```sh
kubectl config use-context CONTEXT_NAME
```

If you used Helm to install the Kubernetes integration, just uninstall it using Helm:

```sh
helm uninstall --namespace NAMESPACE_USED_DURING_INSTALLATION RELEASE_NAME
```

If you installed Kubernetes integration using a manifest, use the same manifest to uninstall it:

```sh
kubectl delete -f newrelic-infrastructure.yaml
```

````

**MySQL**

| **Package manager**                 | **Uninstall instructions**        |
| ----------------------------------- | --------------------------------- |
| apt (Debian or Ubuntu)              | `sudo apt-get remove nri-mysql`   |
| yum (Amazon Linux, CentOS, or RHEL) | `sudo yum remove nri-mysql`       |
| zypper (SLES)                       | `sudo zypper -n remove nri-mysql` |

**NGINX**

| **Package manager**                 | **Uninstall instructions**        |
| ----------------------------------- | --------------------------------- |
| apt (Debian or Ubuntu)              | `sudo apt-get remove nri-nginx`   |
| yum (Amazon Linux, CentOS, or RHEL) | `sudo yum remove nri-nginx`       |
| zypper (SLES)                       | `sudo zypper -n remove nri-nginx` |

**Redis**

| **Package manager**                 | **Uninstall instructions**        |
| ----------------------------------- | --------------------------------- |
| apt (Debian or Ubuntu)              | `sudo apt-get remove nri-redis`   |
| yum (Amazon Linux, CentOS, or RHEL) | `sudo yum remove nri-redis`       |
| zypper (SLES)                       | `sudo zypper -n remove nri-redis` |

**StatsD**

1.  `cd /path/to/statsd`
2.  `npm uninstall @newrelic/statsd-infra-backend`
3.  From the StatsD config.js, remove the `"@newrelic/statsd-infra-backend"` entry from the list of backends.
4.  Restart StatsD.

## Moving away from the integrations package [#uninstall-package]

While it is still possible to use the integrations package, we recommend removing it completely and working with integrations on an individual basis.

The last integration package contains the following versions of the integrations:

-   Apache 1.1.2
-   Cassandra 2.0.3
-   MySQL 1.1.5
-   Nginx 1.0.2
-   Redis 1.0.1

If you remove the integrations package and want to continue using the related on-host integrations, you will need to install them one by one. To uninstall the package and re-install your integrations:

1.  Remove the integrations package by following these instructions. The config files from the old integrations will not be deleted, so you won’t have to configure them again.

    **Uninstall package**

    | **Package manager**                   | **Uninstall instructions**                                                      |
    | ------------------------------------- | ------------------------------------------------------------------------------- |
    | `apt` (Debian or Ubuntu)              | - `sudo apt-get remove newrelic-infra-integrations` - `sudo apt-get autoremove` |
    | `yum` (Amazon Linux, CentOS, or RHEL) | - `sudo yum remove newrelic-infra-integrations` - `sudo yum autoremove`         |
    | `zypper` (SLES)                       | ````sh sudo zypper -n remove newrelic-infra-integrations --clean-deps ```  ```` |
2.  Install your integrations one by one following [these instructions](https://docs.newrelic.com/docs/integrations/host-integrations/installation/install-host-integrations-built-new-relic). To replicate the integrations package, you will need to install all the available integrations again.
