@cryptotaxi247 / netdata-1 / commits / f4464b470

Provide more precise uninstall instructions (#5347)

* Provide more precise uninstall instructions Related to #5341 * Update UNINSTALL.md

Chris Akritidis committed Feb 8, 2019 at 11:27 UTC f4464b4709def76cb2dd8fcb08cb04d1c4ce15e9
1 file changed +8 -3
packaging/installer/UNINSTALL.md
+8 -3
@@ -8,14 +8,19 @@ NETDATA_ADDED_TO_GROUPS
8
9 A workflow for uninstallation looks like this:
10
11 -1. Find your .environment file
11 +1. Find your `.environment` file, which is usually `/etc/netdata/.environment` in a default installation.
12 2. If you cannot find that file and would like to uninstall netdata, then create new file with following content:
13 ```
14 NETDATA_PREFIX="<installation prefix>" # put what you used as a parameter to shell installed `--install` flag. Otherwise it should be empty
15 NETDATA_ADDED_TO_GROUPS="<additional groups>" # Additional groups for a user running netdata process
16 ```
17 -3. Download [netdata-uninstaller.sh](https://github.com/netdata/netdata/blob/master/packaging/installer/netdata-uninstaller.sh) and run it as follows: `netdata-uninstaller.sh --yes --env <path_to_environment_file>`. The default `path_to_environment_file` is `/etc/netdata`, it's the location of the file `.environment` that is used by the uninstaller.
18 -
17 +3. Download, chmod and run netdata-uninstaller.sh.
18 +```
19 +wget https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/netdata-uninstaller.sh
20 +chmod +x ./netdata-uninstaller.sh
21 +./netdata-uninstaller.sh --yes --env <environment_file>
22 +```
23 +The default `environment_file` is `/etc/netdata/.environment`.
24
25 Note: This uninstallation method assumes previous installation with netdata-installer.sh or kickstart script. Currently using it when netdata was installed by a package manager can work or cause unexpected results.
26