How to uninstall the agents manually on various OS

Modified on Mon, 26 May at 4:13 PM

Purpose:
This article provides a template to guide users through the manual uninstallation process of SecPod Saner agents on different operating systems including Windows, Linux, and AIX.


Uninstalling Saner Agent on Windows

Steps:
1.Save the below commands as .bat file.
2.Script :- 

@echo off
sc stop "SecPod Saner Agent"
RMDIR "C:\Program Files (x86)\SecPod Saner" /S /Q
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SecPod\SecPod Saner" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SecPod\SecPod Saner" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SecPod" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SecPod Saner" /f
sc delete "SecPod Saner Agent"
sc delete "SecPod Saner Upgrade Controller"


Note: Ensure you have administrative privileges before performing these steps.


Uninstalling Saner Agent on Linux

Steps:
1.Save the below commands as .sh file.
2.Script:- DPKG


rm -rf /etc/cron.d/spsaner /etc/init.d/spsaner /usr/bin/spsaner_maintenance /usr/bin/spsanerupgrade /usr/sbin/spsaneragent /usr/bin/spscanmanager /usr/share/applications/spsaner.desktop /usr/share/pixmaps/spsaner.png /usr/share/polkit-1/actions/com.secpod.saner.policy /var/lib/dpkg/info/spsaner.conffiles/var/lib/dpkg/info/spsaner.list /var/lib/dpkg/info/spsaner.md5sums /var/lib/dpkg/info/spsaner.postinst /var/lib/dpkg/info/spsaner.postrm /var/lib/dpkg/info/spsaner.preinst /var/lib/dpkg/info/spsaner.prerm /spsaner.default /spsaner.init /usr/lib/saner/ /etc/rc0.d/*spsaner /var/lib/dpkg/info/spsaner.conffiles /var/lib/dpkg/info/spsaner.list /etc/rc*.d/*spsaner /etc/saner/ /etc/saner/EDR/ /usr/lib64/saner/ /usr/share/doc/saner/ /usr/share/doc/saner/thirdparty/ /var/saner/ /var/log/saner/ /var/saner/ir/ /var/saner/updates/ /var/saner/updates/cre/ /var/saner/updates/compliance/ /var/saner/updates/vulnerability/ /var/saner/updates/remediation/ /etc/saner/EDR/configurationmanagement/ /etc/saner/EDR/querymanagement/ /etc/saner/EDR/remediationjob/ /etc/saner/EDR/remediationrules/ /var/saner/bufferedpatches/ /usr/bin/spsaner /usr/bin/spagentwatchdog /Library/LaunchDaemons/com.secpod.pkg.saner. /usr/local/bin/spsaner* /usr/local/bin/saner.ico /usr/local/lib/saner /usr/local/share/doc/saner /private/var/log/saner /private/var/db/receipts/com.secpod.pkg.saner.plist /private/var/db/receipts/com.secpod.pkg.saner.bom /lib/systemd/system/spsaner.service


3: Script :- RPM

rm -rf /usr/lib64/saner /usr/bin/spsaner* /usr/bin/spmaintain* /var/log/saner /var/saner /etc/saner

Note: Commands may vary slightly depending on the Linux distribution (e.g., Ubuntu, CentOS, RHEL).


Uninstalling Saner Agent on AIX

Steps:
1.Save the below commands as .ksh file.
2.Script :-

rm -rf /etc/rc.d/rc2.d/Sspsaner /etc/rc.d/rc2.d/Kspsaner /etc/rc.d/rc3.d/Sspsaner /etc/rc.d/rc3.d/Kspsaner /etc/saner /var/log/saner /var/saner /etc/rc.d/init.d/spsaner /usr/lib/saner /usr/sbin/spsaneragent /usr/bin/*saner* /tmp/spsaner*

Note: You may be prompted for the admin password during the process.


Additional Notes:

  • Ensure all active sessions of the Saner agent are terminated before uninstallation.

  • If any issues occur during uninstallation, refer to the logs or contact support@secpod.com for assistance.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article