Show TOC

Uninstalling SAP Host AgentLocate this document in the navigation structure

You can uninstall SAP Host Agent by running the saphostexec executable from the command line.

Prerequisites

Windows You must be logged on as a member of the local Administrators group.
UNIX You must be logged on as a user with root authorizations.
IBM i You must be logged on as a user profile with special authorities *SECADM and *ALLOBJ, for example as user profile QSECOFR.

Context

On Windows, you can also unistall the SAP Host Agent using Start of the navigation path Control Panel Next navigation step Programs and Features End of the navigation path.

Procedure

  1. IBM i only: Enter the command CALL PGM(QP2TERM) to start a PASE interactive terminal session.
  2. Run the following command from the command line:
    UNIX, IBM i /usr/sap/hostctrl/exe/saphostexec -uninstall
    Windows %ProgramFiles%\SAP\hostctrl\exe\saphostexec.exe -uninstall

Results

This command stops the executables and services of SAP Host Agent and deletes the following:

  • The work directory of SAP Host Agent

  • The exe directory of SAP Host Agent

  • Windows: The local sapadm user and SAP_LocalAdmin group