You can uninstall all the Wazuh central components using the Wazuh installation assistant.
Which is a script used for assisted installation, you can use the same script for uninstallation as well by choosing these options:
sudo bash wazuh-install.sh --uninstall
This will remove the Wazuh indexer, the Wazuh server, and the Wazuh dashboard.
If you want to uninstall one specific central component, follow these instructions:
Uninstall the Wazuh dashboard:yum remove wazuh-dashboard -y
rm -rf /var/lib/wazuh-dashboard/
rm -rf /usr/share/wazuh-dashboard/
rm -rf /etc/wazuh-dashboard/
Uninstall the Wazuh server:- Remove the Wazuh manager installation:
yum remove wazuh-manager -y
rm -rf /var/ossec/
- Disable the Wazuh manager service:
systemctl disable wazuh-manager
systemctl daemon-reload
- Remove the Filebeat installation:
yum remove filebeat -y
rm -rf /var/lib/filebeat/
rm -rf /usr/share/filebeat/
rm -rf /etc/filebeat/
Uninstall the Wazuh indexer:- Remove the Wazuh indexer installation:
yum remove wazuh-indexer -y
rm -rf /var/lib/wazuh-indexer/
rm -rf /usr/share/wazuh-indexer/
rm -rf /etc/wazuh-indexer/
I'm happy to share our
comprehensive documentation with you. It contains a lot of useful information about various Wazuh functionalities.