Uninstalling the RocketCyber agent
The RocketCyber agent can be uninstalled from a system using the following methods:
Powershell - Windows
The following is a Powershell script that can be used to automate the uninstall of the RocketCyber Agent: rocketagent_uninstall.ps1
Command Line Uninstall - Windows
If you prefer to script or perform an uninstall from the command line the uninstaller program is located in Program Files\RocketAgent\uninstall.exe
If you execute uninstall.exe without any command-line parameters, it will display a normal graphical uninstaller interface that requires user interaction. To run a silent uninstall, provide /S as a command-line parameter. This will cause the uninstaller to not display its user interface and requires no user interaction. See the example below:
C:\Program Files\RocketAgent\uninstall.exe /S
Command Line Uninstall - macOS
If you prefer to script or perform an uninstall from the command line, the uninstaller program is located in /usr/local/rocketcyber/mac-agent-updater
To uninstall, see the example below:
sudo /usr/local/rocketcyber/mac-agent-updater UNINSTALL "" "" ""
The command is case-sensitive and must be entered exactly as shown.
Both of these methods will run silently and can be scripted using any RMM tool or other automation tool that can execute commands on an endpoint.
Uninstall Linux Agent
Uninstall via the linux-agent-updater application.
From a terminal prompt, run the following command:
sudo /usr/local/rocketcyber/linux-agent-updater UNINSTALL "" "" ""
This will remove the agent from linux service manager (systemctl) and remove the agent installation (/usr/local/rocketcyber).
Manual Uninstall Linux Agent
From a terminal prompt, run the following commands:
- Stop the agent:
sudo systemctl stop rocketcyber.service
- Verify agent is stopped:
sudo systemctl status rocketcyber.service
-observe the "Active:" and "Main PID:" entries
- Remove the agent config file:
sudo rm /etc/systemd/system/rocketcyber.service
- Remove agent from linux management:
sudo systemctl daemon-reload
- Remove files:
sudo rm -rf /usr/local/rocketcyber