Following are the steps to remove Zabbix agent from Windows.
1. Login to your Server.
2. Open Command Prompt as an administrator.
3. Enter the following command to open Zabbix installation directory.
cd c:\Program Files\zabbix\bin\win64
4. Run below command to uninstall Zabbix service.
zabbix_agentd.exe --uninstall
5.Remove the "zabbix_agentd.conf" and "zabbix_agentd" files from the C Drive.
6. Remove the Zabbix folder from the path C:\Program Files.
7. Delete the Zabbix agent from Zabbix Server.
Following are the steps to remove Zabbix agent from CentOS.
1. Login to your server via SSH.
2. Enter the following command.
yum remove zabbix-agent -y
3. We need to remove the Zabbix Directory. Now, type cd /etc and hit enter.
4. Type the ls command to load all the folders under etc. Here, you will find a folder named Zabbix.
5. Run the following command to remove the Zabbix folder.
rm -rf zabbix
6. Delete the Zabbix agent from Zabbix Server.