|
2 | 2 |
|
3 | 3 | .. meta::
|
4 | 4 | :description: Learn how to uninstall each Wazuh central component.
|
5 |
| - |
| 5 | + |
6 | 6 | Uninstalling the Wazuh central components
|
7 | 7 | =========================================
|
8 | 8 |
|
9 |
| -You can uninstall all the Wazuh central components using the `Wazuh installation assistant <https://packages.wazuh.com/|WAZUH_CURRENT_MINOR|/wazuh-install.sh>`_. |
| 9 | +Follow these steps to uninstall the Wazuh central components using the Wazuh installation assistant. |
| 10 | + |
| 11 | +#. Download the Wazuh installation assistant: |
| 12 | + |
| 13 | + .. code-block:: console |
| 14 | +
|
| 15 | + # curl -sO https://packages.wazuh.com/|WAZUH_CURRENT_MINOR|/wazuh-install.sh |
10 | 16 |
|
11 |
| -Run the assistant with the option ``-u`` or ``--uninstall`` as follows: |
| 17 | +#. Run the Wazuh installation assistant with the option ``-u`` or ``--uninstall`` as follows: |
12 | 18 |
|
13 |
| -.. code-block:: console |
| 19 | + .. code-block:: console |
14 | 20 |
|
15 |
| - $ sudo bash wazuh-install.sh --uninstall |
| 21 | + # bash wazuh-install.sh --uninstall |
16 | 22 |
|
17 | 23 | This will remove the Wazuh indexer, the Wazuh server, and the Wazuh dashboard.
|
18 | 24 |
|
19 |
| -If you want to uninstall one specific central component, follow the instructions below. |
| 25 | +Uninstalling Wazuh components |
| 26 | +----------------------------- |
| 27 | + |
| 28 | +Choose from the options below to uninstall a Wazuh component. |
20 | 29 |
|
21 |
| -.. note:: |
22 |
| - |
23 |
| - You need root user privileges to run all the commands described below. |
| 30 | +.. contents:: |
| 31 | + :local: |
| 32 | + :depth: 1 |
| 33 | + :backlinks: none |
24 | 34 |
|
25 | 35 | .. _uninstall_dashboard:
|
26 | 36 |
|
27 |
| -Uninstall the Wazuh dashboard |
28 |
| ------------------------------ |
| 37 | +Uninstalling the Wazuh dashboard |
| 38 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 39 | + |
| 40 | +Follow the step below to uninstall the Wazuh dashboard using your package manager. |
29 | 41 |
|
30 | 42 | #. Remove the Wazuh dashboard installation.
|
31 | 43 |
|
32 | 44 | .. tabs::
|
33 | 45 |
|
| 46 | + .. group-tab:: APT |
| 47 | + |
| 48 | + .. code:: console |
| 49 | +
|
| 50 | + # apt-get remove --purge wazuh-dashboard -y |
| 51 | +
|
34 | 52 | .. group-tab:: Yum
|
35 | 53 |
|
36 | 54 | .. code:: console
|
37 |
| - |
| 55 | +
|
38 | 56 | # yum remove wazuh-dashboard -y
|
39 | 57 | # rm -rf /var/lib/wazuh-dashboard/
|
40 | 58 | # rm -rf /usr/share/wazuh-dashboard/
|
41 | 59 | # rm -rf /etc/wazuh-dashboard/
|
42 | 60 |
|
43 |
| - .. group-tab:: APT |
| 61 | + .. group-tab:: DNF |
44 | 62 |
|
45 | 63 | .. code:: console
|
46 | 64 |
|
47 |
| - # apt-get remove --purge wazuh-dashboard -y |
| 65 | + # dnf remove wazuh-dashboard -y |
| 66 | + # rm -rf /var/lib/wazuh-dashboard/ |
| 67 | + # rm -rf /usr/share/wazuh-dashboard/ |
| 68 | + # rm -rf /etc/wazuh-dashboard/ |
48 | 69 |
|
49 | 70 | .. _uninstall_server:
|
50 | 71 |
|
51 |
| -Uninstall the Wazuh server |
52 |
| --------------------------- |
| 72 | +Uninstalling the Wazuh server |
| 73 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 74 | + |
| 75 | +Follow these steps to uninstall the Wazuh manager and filebeat using your package manager. |
53 | 76 |
|
54 | 77 | #. Remove the Wazuh manager installation.
|
55 | 78 |
|
56 | 79 | .. tabs::
|
57 | 80 |
|
| 81 | + .. group-tab:: APT |
| 82 | + |
| 83 | + .. code-block:: console |
| 84 | +
|
| 85 | + # apt-get remove --purge wazuh-manager -y |
| 86 | +
|
58 | 87 | .. group-tab:: Yum
|
59 | 88 |
|
60 | 89 | .. code-block:: console
|
61 |
| - |
| 90 | +
|
62 | 91 | # yum remove wazuh-manager -y
|
63 | 92 | # rm -rf /var/ossec/
|
64 | 93 |
|
65 |
| - .. group-tab:: APT |
| 94 | + .. group-tab:: DNF |
66 | 95 |
|
67 | 96 | .. code-block:: console
|
68 |
| - |
69 |
| - # apt-get remove --purge wazuh-manager -y |
| 97 | +
|
| 98 | + # dnf remove wazuh-manager -y |
| 99 | + # rm -rf /var/ossec/ |
70 | 100 |
|
71 | 101 | #. Remove the Filebeat installation.
|
72 | 102 |
|
73 | 103 | .. tabs::
|
74 | 104 |
|
| 105 | + .. group-tab:: APT |
| 106 | + |
| 107 | + .. code:: console |
| 108 | +
|
| 109 | + # apt-get remove --purge filebeat -y |
| 110 | +
|
75 | 111 | .. group-tab:: Yum
|
76 | 112 |
|
77 | 113 | .. code:: console
|
78 |
| - |
| 114 | +
|
79 | 115 | # yum remove filebeat -y
|
80 | 116 | # rm -rf /var/lib/filebeat/
|
81 | 117 | # rm -rf /usr/share/filebeat/
|
82 | 118 | # rm -rf /etc/filebeat/
|
83 | 119 |
|
84 |
| - .. group-tab:: APT |
| 120 | + .. group-tab:: DNF |
85 | 121 |
|
86 | 122 | .. code:: console
|
87 |
| - |
88 |
| - # apt-get remove --purge filebeat -y |
| 123 | +
|
| 124 | + # dnf remove filebeat -y |
| 125 | + # rm -rf /var/lib/filebeat/ |
| 126 | + # rm -rf /usr/share/filebeat/ |
| 127 | + # rm -rf /etc/filebeat/ |
89 | 128 |
|
90 | 129 | .. _uninstall_indexer:
|
91 | 130 |
|
92 |
| -Uninstall the Wazuh indexer |
93 |
| ---------------------------- |
| 131 | +Uninstalling the Wazuh indexer |
| 132 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 133 | + |
| 134 | +Follow the step below to uninstall the Wazuh indexer using your package manager. |
94 | 135 |
|
95 | 136 | #. Remove the Wazuh indexer installation.
|
96 | 137 |
|
97 | 138 | .. tabs::
|
98 | 139 |
|
| 140 | + .. group-tab:: APT |
| 141 | + |
| 142 | + .. code:: console |
| 143 | +
|
| 144 | + # apt-get remove --purge wazuh-indexer -y |
| 145 | +
|
99 | 146 | .. group-tab:: Yum
|
100 | 147 |
|
101 | 148 | .. code:: console
|
102 |
| - |
| 149 | +
|
103 | 150 | # yum remove wazuh-indexer -y
|
104 | 151 | # rm -rf /var/lib/wazuh-indexer/
|
105 | 152 | # rm -rf /usr/share/wazuh-indexer/
|
106 | 153 | # rm -rf /etc/wazuh-indexer/
|
107 | 154 |
|
108 |
| - .. group-tab:: APT |
| 155 | + .. group-tab:: DNF |
109 | 156 |
|
110 | 157 | .. code:: console
|
111 | 158 |
|
112 |
| - # apt-get remove --purge wazuh-indexer -y |
| 159 | + # dnf remove wazuh-indexer -y |
| 160 | + # rm -rf /var/lib/wazuh-indexer/ |
| 161 | + # rm -rf /usr/share/wazuh-indexer/ |
| 162 | + # rm -rf /etc/wazuh-indexer/ |
0 commit comments