To uninstall the wazuh windows agent completely please run the following commands in cmd as administrative
Uninstall Using the Installation MSI
Run the command (you can run this command at powershell or cmd
as administrative):
msiexec /x wazuh-agent-version.msi /q To clean up the installation folder, if it still exists use (cmd command
as administrative ):
rd /s /q "C:\Program Files (x86)\ossec-agent" Running this command will completely remove the Windows agent from your Windows endpoint.
Refer:
https://documentation.wazuh.com/current/installation-guide/uninstalling-wazuh/agent.html#uninstalling-a-windows-wazuh-agent
Hope this helps