[Uninstall Netdata] - Add description in the docs to use uninstaller script with force arg (#12687)
* [Uninstall Netdata] - Add doc description to uninstall with the force argument * [Uninstall Netdata] - Fix missing indentation in bullets 3.1-2 * [Uninstall Netdata] - Highlighting with bold Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> * [Uninstall Netdata] - Highlighting with bold 2 Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> * [Uninstall Netdata] - Highlighting header with bold Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com> * [Uninstall Netdata] - Highlighting header with bold 2 Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com> Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com>
odynik committed
Apr 20, 2022 at 09:33 UTC
69ca5926baf87283fba992dfb0019d684dc8297b
1 file changed
+15
-3
packaging/installer/UNINSTALL.md
+15
-3
@@ -33,9 +33,21 @@ NETDATA_ADDED_TO_GROUPS="<additional groups>" # Additional groups for a user ru
33
34
3. Run `netdata-uninstaller.sh` as follows
35
36
-```sh
37
-${NETDATA_PREFIX}/usr/libexec/netdata/netdata-uninstaller.sh --yes --env <environment_file>
38
-```
36
+ 3.1 **Interactive mode (Default)**
37
+
38
+ The default mode in the uninstaller script is **interactive**. This means that the script provides the user the option to reply with "yes" (`y`/`Y`) or "no" (`n`/`N`) to control the removal of each Netdata asset in the filesystem.
39
+
40
+ ```sh
41
+ ${NETDATA_PREFIX}/usr/libexec/netdata/netdata-uninstaller.sh --yes --env <environment_file>
42
+ ```
43
+
44
+ 3.2 **Non-interactive mode**
45
+
46
+ If you are sure and you know what you are doing, you can speed up the removal of the Netdata assets from the filesystem without any questions by using the force option (`-f`/`--force`). This option will remove all the Netdata assets in a **non-interactive** mode.
47
+
48
+ ```sh
49
+ ${NETDATA_PREFIX}/usr/libexec/netdata/netdata-uninstaller.sh --yes --force --env <environment_file>
50
+ ```
51
52
Note: Existing installations may still need to download the file if it's not present. To execute uninstall in that case,
53
run the following commands: