Skip to main content
Gorelo Agent

Uninstall the Gorelo Agent

Written By Mikel from Gorelo

This script will carry out a clean uninstall of the Gorelo agent

Windows

# Stop all Gorelo-related processes
$processes = "Gorelo.Rmm.Installer", "Gorelo.Rmm.Installer.Handler", "Gorelo.RemoteManagement.Shell", "Gorelo.RemoteManagement.Agent", "TrayApp"
$processes | ForEach-Object { Stop-Process -Name $_ -Force -ErrorAction Ignore }

# Delete Gorelo services
"gorelo.rmm.installer", "gorelo.rmm.shell" | ForEach-Object {
    if (Get-Service -Name $_ -ErrorAction Ignore) { sc.exe delete $_ }
}

# Remove Gorelo program folder
Remove-Item -Path "$Env:ProgramFiles\Gorelo" -Recurse -Force -ErrorAction Ignore -Confirm:$false;
Remove-Item -Path "$Env:ProgramFiles (x86)\Gorelo" -Recurse -Force -ErrorAction Ignore -Confirm:$false;

# Remove Gorelo registry key
# Note: Retaining this key will allow for a repair install
Remove-Item "HKLM:\SOFTWARE\Gorelo" -Recurse -Force -ErrorAction Ignore


macOS

DIR="/Library/Gorelo"
PLISTS=(
    "/Library/LaunchDaemons/com.gorelo.agent.plist"
    "/Library/LaunchDaemons/com.gorelo.installer.plist"
)
 
if [ -d "$DIR" ]; then
    for plist in "${PLISTS[@]}"; do
        if [ -f "$plist" ]; then
            sudo launchctl unload "$plist"
            sudo rm "$plist"
        fi
    done
 
    sudo rm -R "$DIR"
    sudo defaults delete com.gorelo.app
    echo "Gorelo uninstallation complete."
fi