How to Uninstall SAP Host Agent

Log in to the operating system with root / administrator user and navigate to the following directory (SAP Host Agent installation directory).

UNIX, Linux = /usr/sap/hostctrl/exe
Windows: C:\Program Files\SAP\hostctrl\exe

Execute below command to remove the SAP Host Agent.

Windows = saphostexec.exe -uninstall
UNIX, Linux = saphostexec -uninstall

saphostexec.exe -uninstall

Uninstall service
Stop service if running ...
Wait for SAPHostControl to be stopped ...
[Thr 6732] Tue Feb 18 17:18:58 2014
[Thr 6732] Process 0 terminated -1

Wait for SAPHostExec to be stopped ...
ok
Uninstall SAPHostControl ...Unregister sapstartsrv:
"C:\Program Files\SAP\hostctrl\exe\sapstartsrv.exe" -u -q -soap -p "
C:\Program Files\SAP\hostctrl\exe\host_profile" -s SAP -n 99 -U ARACICI\sapadm
SAPHostControl successfully unistalled
ok
Uninstall SAPHostExec ...ok
Remove directory ...
Uninstall successful

The command will delete the SAP Host Agent work, exe directory and local sapadm user / SAP_LocalAdmin group.

You May Also Like

Leave a Reply?