From 627e690c36cddc594f9ac2350e93d1fb96aa1d3d Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Wed, 5 Jul 2023 08:42:16 -0500 Subject: [PATCH] [v10.0.x] Docs: adds uninstall instructions to debian/ubuntu (#71078) Docs: adds uninstall instructions to debian/ubuntu (#70841) * adds uninstall to debian/ubuntu * updates based on SME feedback * Update docs/sources/setup-grafana/installation/debian/index.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> * Moved remove grafana repo as separate step * adds uninstall docs to remaining linux topics * Update docs/sources/setup-grafana/installation/debian/index.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> * Update docs/sources/setup-grafana/installation/suse-opensuse/index.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> * Update docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> * Update docs/sources/setup-grafana/installation/suse-opensuse/index.md * corrects punctuation * makes prettier --------- Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> (cherry picked from commit 971058919f805ba3019d527eb445bd0bafe74f01) Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> --- .../installation/debian/index.md | 36 +++++++++++++++++++ .../installation/redhat-rhel-fedora/index.md | 34 ++++++++++++++++++ .../installation/suse-opensuse/index.md | 34 ++++++++++++++++++ .../setup-grafana/start-restart-grafana.md | 2 +- 4 files changed, 105 insertions(+), 1 deletion(-) diff --git a/docs/sources/setup-grafana/installation/debian/index.md b/docs/sources/setup-grafana/installation/debian/index.md index 66348b1e2c4..331791be2a3 100644 --- a/docs/sources/setup-grafana/installation/debian/index.md +++ b/docs/sources/setup-grafana/installation/debian/index.md @@ -92,6 +92,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 df96961b64a..d9d01ded536 100644 --- a/docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md +++ b/docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md @@ -100,6 +100,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 98c7eb56dbd..b3faffd7c79 100644 --- a/docs/sources/setup-grafana/installation/suse-opensuse/index.md +++ b/docs/sources/setup-grafana/installation/suse-opensuse/index.md @@ -88,6 +88,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 3d6efc6fb42..5d32ee1939f 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: