Uninstalling the Wazuh central components

Follow these steps to uninstall the Wazuh central components using the Wazuh installation assistant.

  1. Download the Wazuh installation assistant:

    # curl -sO https://packages.wazuh.com/4.13/wazuh-install.sh
    
  2. 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.

  1. Remove the Wazuh dashboard installation.

    # apt-get remove --purge wazuh-dashboard -y
    

Uninstalling the Wazuh server

Follow these steps to uninstall the Wazuh manager and filebeat using your package manager.

  1. Remove the Wazuh manager installation.

    # apt-get remove --purge wazuh-manager -y
    
  2. Remove the Filebeat installation.

    # apt-get remove --purge filebeat -y
    

Uninstalling the Wazuh indexer

Follow the step below to uninstall the Wazuh indexer using your package manager.

  1. Remove the Wazuh indexer installation.

    # apt-get remove --purge wazuh-indexer -y