Uninstalling the Wazuh central components
Follow these steps to uninstall the Wazuh central components using the Wazuh installation assistant.
Download the Wazuh installation assistant:
# curl -sO https://packages.wazuh.com/4.13/wazuh-install.sh
Run the Wazuh installation assistant with the option
-u
or--uninstall
as follows:# bash wazuh-install.sh --uninstall
This will remove the Wazuh indexer, the Wazuh server, and the Wazuh dashboard.
Uninstalling Wazuh components
Choose from the options below to uninstall a Wazuh component.
Uninstalling the Wazuh dashboard
Follow the step below to uninstall the Wazuh dashboard using your package manager.
Remove the Wazuh dashboard installation.
# apt-get remove --purge wazuh-dashboard -y
# yum remove wazuh-dashboard -y # rm -rf /var/lib/wazuh-dashboard/ # rm -rf /usr/share/wazuh-dashboard/ # rm -rf /etc/wazuh-dashboard/
# dnf remove wazuh-dashboard -y # rm -rf /var/lib/wazuh-dashboard/ # rm -rf /usr/share/wazuh-dashboard/ # rm -rf /etc/wazuh-dashboard/
Uninstalling the Wazuh server
Follow these steps to uninstall the Wazuh manager and filebeat using your package manager.
Remove the Wazuh manager installation.
# apt-get remove --purge wazuh-manager -y
# yum remove wazuh-manager -y # rm -rf /var/ossec/
# dnf remove wazuh-manager -y # rm -rf /var/ossec/
Remove the Filebeat installation.
# apt-get remove --purge filebeat -y
# yum remove filebeat -y # rm -rf /var/lib/filebeat/ # rm -rf /usr/share/filebeat/ # rm -rf /etc/filebeat/
# dnf remove filebeat -y # rm -rf /var/lib/filebeat/ # rm -rf /usr/share/filebeat/ # rm -rf /etc/filebeat/
Uninstalling the Wazuh indexer
Follow the step below to uninstall the Wazuh indexer using your package manager.
Remove the Wazuh indexer installation.
# apt-get remove --purge wazuh-indexer -y
# yum remove wazuh-indexer -y # rm -rf /var/lib/wazuh-indexer/ # rm -rf /usr/share/wazuh-indexer/ # rm -rf /etc/wazuh-indexer/
# dnf remove wazuh-indexer -y # rm -rf /var/lib/wazuh-indexer/ # rm -rf /usr/share/wazuh-indexer/ # rm -rf /etc/wazuh-indexer/