Skip to main content

April 16, 2026

Uninstall Horizon Agent From a Linux Machine

To uninstall Horizon Agent from a Linux machine, you must uninstall the Horizon Agent service and software and remove certain configuration files.

Prerequisites

  • Verify that the BlastServer process is not running. To stop this process, use one of the following methods:

    • Ensure that the user logs out from the machine and no desktop session is active.

    • Restart the machine.

  • If you plan to remove Horizon Agent from a virtual machine, open a Terminal window. You can run the Horizon Agent uninstallation commands from the Terminal.

  • If you plan to remove Horizon Agent from a physical host machine, open a Secure Shell (SSH) connection to the machine. SSH is the recommended method for running Horizon Agent uninstallation commands on a physical machine.

Procedure

  1. Run the appropriate uninstallation command for your Horizon Agent installer type.

    Horizon Agent Installer TypeHorizon Agent Uninstallation Command
    RPM (.rpm)For an installer file named agent-installer.el8.x86_64.rpm, example uninstall command:
    sudo rpm -e agent-installer.el8.x86_64.rpm
    Tarball (.tar.gz) Change directories to the location of the uninstall_viewagent.sh file, and then run:
    sudo uninstall_viewagent.sh

    The command stops the Horizon Agent processes and deletes the Horizon Agent service and software from the viewagent directory (under the /usr file structure).

  2. Manually delete the Horizon Agent configuration files that are under the /etc directory.

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…