Uninstalling Wazuh with Open Distro for Elasticsearch

This document includes instructions to uninstall the Wazuh components.

Uninstall the Wazuh manager

  1. Remove the Wazuh manager installation.

    # yum remove wazuh-manager
    

    There are files marked as configuration files. Due to this designation, the package manager does not remove those files from the filesystem. The complete file removal action is on user's responsibility. it can be done by removing the folder /var/ossec.

  2. Disable the Wazuh manager service.

    # systemctl disable wazuh-manager
    # systemctl daemon-reload
    

Uninstall Filebeat

# yum remove filebeat

Uninstall Elasticsearch

# yum remove opendistroforelasticsearch

There are files marked as configuration and data files. Due to this designation, the package manager does not remove those files from the filesystem. The complete file removal action is on user's responsibility. It can be done by removing the folder /var/lib/elasticsearch and /etc/elasticsearch.

Uninstall Kibana

# yum remove opendistroforelasticsearch-kibana

There are files marked as configuration and data files. Due to this designation, the package manager does not remove those files from the filesystem. The complete file removal action is on user's responsibility. It can be done by removing the folder /var/lib/kibana and /etc/kibana.