# Uninstalling Wazuh

## Uninstalling Wazuh Central components :&#x20;

```bash
apt-get remove --purge wazuh-dashboard -y
apt-get remove --purge wazuh-manager -y
apt-get remove --purge filebeat -y
apt-get remove --purge wazuh-indexer -y
```

***

## Uninstalling using the Automatic Installation script

```bash
curl -sO https://packages.wazuh.com/4.10/wazuh-install.sh && sudo bash ./wazuh-install.sh -a
```

After getting the script we can remove the wazuh central components using :&#x20;

```bash
sudo bash wazuh-install.sh --uninstall
```

***

## Uninstalling Wazuh Agent&#x20;

```bash
apt-get remove wazuh-agent
# TO REMOVE ALONG WITH CONFIG FILES
apt-get remove --purge wazuh-agent
```

Disabling the system services :&#x20;

```bash
systemctl disable wazuh-agent
systemctl daemon-reload
```
