To uninstall Horizon Agent on a Linux virtual machine, you use the uninstall_viewagent.sh script. You also must remove the Horizon 7 for Linux configuration files from the machine.
- Verify that the machine was removed from the desktop pool and from Horizon 7 . See Remove an Unmanaged Machine from a Manual Desktop Pool and Remove Registered Machines from View.
- Open a terminal window on the virtual machine and run the Horizon Agent uninstall script.
sudo /usr/lib/vmware/viewagent/bin/uninstall_viewagent.shThe script stops Horizon Agent processes, deletes the Horizon Agent service, and deletes the Horizon Agent installation directory, /usr/lib/vmware/viewagent.
- Manually delete the Horizon 7 for Linux configuration files, located in the /etc/vmware/ directory.
If you intend to reinstall Horizon Agent (for example, to upgrade to a later Horizon Agent version), you do not have to delete these configuration files.
delete /etc/vmware/viewagent-machine.cfg delete /etc/vmware/viewagent-config.txt delete /etc/vmware/jms delete /etc/vmware/ssl