Following are the steps to remove Zabbix agent from Windows.
- Login to the VPS using RDP.
- Open Command Prompt as adminisrator.
- Enter the following command to open Zabbix installation directory.
cd\Program Files \zabbix\bin\win64
- Run below command to uninstall zabbix service.
zabbix_agentd.exe --uninstall

- Remove the "zabbix_agentd.conf" and "zabbix_agentd" files from the C Drive.
- Remove the Zabbix folder from the path C:\Program Files.
- Delete the Zabbix agent from Zabbix Server.
Following are the steps to remove Zabbix agent from CentOS.
- Loing to the VPS using SSH.
- Enter the following command.
yum remove zabbix-agent -y

- We need to remove the Zabbix Directory. Now, type cd /etc and hit enter.
- Type the ls command to load all the folders under etc. Here, you will find a folder named Zabbix.
- Run the following command to remove the Zabbix folder.
rm -rf zabbix

- Delete the Zabbix agent from Zabbix Server.