-
Notifications
You must be signed in to change notification settings - Fork 5
sentinelone_uninstall_linux.sh
Corey Watson edited this page Dec 1, 2025
·
1 revision
Uninstalls SentinelOne agent from Linux systems using the sentinelctl command.
This script provides a simple and reliable method to uninstall the SentinelOne agent from Linux systems. It uses the native sentinelctl command-line utility to perform the removal and includes appropriate validation checks.
Automates the uninstallation of the SentinelOne agent on Linux systems. The script verifies root privileges and the presence of the sentinelctl utility before attempting removal, ensuring a clean and reliable uninstallation process.
- Root privileges (sudo access)
- SentinelOne agent must be installed
- sentinelctl command must be available (typically in /usr/local/bin or /opt/sentinelone/bin)
No configuration required. The script automatically detects and uses the sentinelctl utility.
- Validates script is running as root
- Checks for presence of
sentinelctlcommand - Executes
sentinelctl uninstallcommand - Reports success or failure status
- Exits with appropriate exit code
- Requires root privileges for agent removal
- May require disabling tamper protection from SentinelOne console before uninstallation
- No secrets or sensitive data logged
- 0: Success - SentinelOne agent uninstalled successfully
- 1: Failure - Missing privileges, agent not found, or uninstall failed
[ SENTINELONE UNINSTALL ]
--------------------------------------------------------------
Starting SentinelOne agent uninstallation...
Permissions : root
sentinelctl found : yes
Running uninstall command...
[ SUCCESS ]
--------------------------------------------------------------
SentinelOne agent uninstalled successfully
- 1.0.0 - Initial release
- View Script Source
- Scripts - Back to script index