diff --git a/docs/sources/setup-grafana/installation/debian/index.md b/docs/sources/setup-grafana/installation/debian/index.md index 8dfffbf0661..f512fd77078 100644 --- a/docs/sources/setup-grafana/installation/debian/index.md +++ b/docs/sources/setup-grafana/installation/debian/index.md @@ -88,6 +88,42 @@ Complete the following steps to install Grafana using DEB or the standalone bina 1. Depending on which system you are running, click the **Linux** or **ARM** tab on the [download page](/grafana/download). 1. Copy and paste the code from the [download page](/grafana/download) into your command line and run. +## Uninstall on Debian or Ubuntu + +Complete any of the following steps to uninstall Grafana. + +To uninstall Grafana, run the following commands in a terminal window: + +1. If you configured Grafana to run with systemd, stop the systemd servivce for Grafana server: + + ```shell + sudo systemctl stop grafana-server + ``` + +1. If you configured Grafana to run with init.d, stop the init.d service for Grafana server: + + ```shell + sudo service grafana-server stop + ``` + +1. To uninstall Grafana OSS: + + ```shell + sudo apt-get remove grafana + ``` + +1. To uninstall Grafana Enterprise: + + ```shell + sudo apt-get remove grafana-enterprise + ``` + +1. Optional: To remove the Grafana repository: + + ```bash + sudo rm -i /etc/apt/sources.list.d/grafana.list + ``` + ## Next steps - [Start the Grafana server]({{< relref "../../start-restart-grafana/" >}}) diff --git a/docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md b/docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md index ef6c18bc801..949da6b7b25 100644 --- a/docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md +++ b/docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md @@ -98,6 +98,40 @@ Complete the following steps to install Grafana using the standalone binaries: 1. Depending on which system you are running, click the **Linux** or **ARM** tab on the [download page](/grafana/download). 1. Copy and paste the code from the [download page](/grafana/download) page into your command line and run. +## Uninstall on RHEL or Fedora + +To uninstall Grafana, run the following commands in a terminal window: + +1. If you configured Grafana to run with systemd, stop the systemd service for Grafana server: + + ```shell + sudo systemctl stop grafana-server + ``` + +1. If you configured Grafana to run with init.d, stop the init.d service for Grafana server: + + ```shell + sudo service grafana-server stop + ``` + +1. To uninstall Grafana OSS: + + ```shell + sudo dnf remove grafana + ``` + +1. To uninstall Grafana Enterprise: + + ```shell + sudo dnf remove grafana-enterprise + ``` + +1. Optional: To remove the Grafana repository: + + ```shell + sudo rm -i /etc/apt/sources.list.d/grafana.list + ``` + ## Next steps Refer to [Start the Grafana server]({{< relref "../../start-restart-grafana/" >}}). diff --git a/docs/sources/setup-grafana/installation/suse-opensuse/index.md b/docs/sources/setup-grafana/installation/suse-opensuse/index.md index 53dfce74a45..e709c0adf77 100644 --- a/docs/sources/setup-grafana/installation/suse-opensuse/index.md +++ b/docs/sources/setup-grafana/installation/suse-opensuse/index.md @@ -86,6 +86,40 @@ Complete the following steps to install Grafana using the standalone binaries: 1. Depending on which system you are running, click the **Linux** or **ARM** tab on the [download page](/grafana/download). 1. Copy and paste the code from the [download page](/grafana/download) into your command line and run. +## Uninstall on SUSE or openSUSE + +To uninstall Grafana, run the following commands in a terminal window: + +1. If you configured Grafana to run with systemd, stop the systemd service for Grafana server: + + ```shell + sudo systemctl stop grafana-server + ``` + +1. If you configured Grafana to run with init.d, stop the init.d service for Grafana server: + + ```shell + sudo service grafana-server stop + ``` + +1. To uninstall Grafana OSS: + + ```shell + sudo zypper remove grafana + ``` + +1. To uninstall Grafana Enterprise: + + ```shell + sudo zypper remove grafana-enterprise + ``` + +1. Optional: To remove the Grafana repository: + + ```shell + sudo zypper removerepo grafana + ``` + ## Next steps Refer to [Start the Grafana server]({{< relref "../../start-restart-grafana/" >}}). diff --git a/docs/sources/setup-grafana/start-restart-grafana.md b/docs/sources/setup-grafana/start-restart-grafana.md index 20d73130e4e..3e619815f12 100644 --- a/docs/sources/setup-grafana/start-restart-grafana.md +++ b/docs/sources/setup-grafana/start-restart-grafana.md @@ -22,7 +22,7 @@ The following subsections describe three methods of starting and restarting the ### Start the Grafana server with systemd -Complete the following steps to start the Grafana server using systemd and verify that it is running: +Complete the following steps to start the Grafana server using systemd and verify that it is running. 1. To start the service, run the following commands: