Skip to content

superops_agent_uninstall_linux.sh

Corey Watson edited this page Dec 1, 2025 · 1 revision

superops_agent_uninstall_linux.sh

Uninstalls the SuperOps RMM agent from Linux systems.

Overview

Uninstalls the SuperOps RMM agent from Linux systems by executing the agent's built-in uninstall script. This provides a clean removal of the agent and all associated components.

Purpose

Uninstalls the SuperOps RMM agent from Linux systems by executing the agent's built-in uninstall script. This provides a clean removal of the agent and all associated components.

Prerequisites

  • Bash shell
  • Linux operating system
  • Root/sudo privileges (for uninstallation)
  • SuperOps RMM agent must be installed
  • Uninstall script must exist at /opt/superopsrmm/uninstall.sh

Configuration

Required Inputs

  • UninstallScriptPath : "/opt/superopsrmm/uninstall.sh" (Path to the SuperOps-provided uninstall script)

Settings

  • Uses the official SuperOps uninstall script
  • Ensures script is executable before running
  • Validates script existence before execution
  • No additional cleanup needed (handled by uninstall script)

Behavior

  • Validates that the uninstall script exists at expected path
  • Sets executable permissions on the uninstall script
  • Executes the SuperOps-provided uninstall script
  • Reports progress and status to stdout
  • Exits with code 0 on success, 1 on failure
  • All-or-nothing: any failure stops the script immediately

Security Notes

  • No secrets or credentials used
  • Executes only the official SuperOps uninstall script
  • Requires root privileges to execute
  • Does not store or transmit any data

Exit Codes

  • 0 success
  • 1 failure

Example Output

[ INPUT VALIDATION ]
--------------------------------------------------------------
Uninstall Script: /opt/superopsrmm/uninstall.sh

[ OPERATION ]
--------------------------------------------------------------
Checking for uninstall script...
Uninstall script found
Setting executable permissions...
Executing uninstall script...
Removing SuperOps RMM Agent...
Stopping services...
Removing files...
Uninstallation complete

[ RESULT ]
--------------------------------------------------------------
Status: Success

[ FINAL STATUS ]
--------------------------------------------------------------
SuperOps agent uninstalled successfully

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • 2025-11-02 v1.0.0 Initial migration from SuperOps
    • Converted to Limehawk Style A format (bash)
    • Added comprehensive error handling
    • Added validation checks
    • Added structured console output
    • Made installation path configurable

Links

Clone this wiki locally