> ## Documentation Index
> Fetch the complete documentation index at: https://help.gorelo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Uninstall the Gorelo Agent

> Clean uninstall the Gorelo Agent from Windows or macOS using a PowerShell script that stops services, deletes processes, and removes installation files.

This script will carry out a clean uninstall of the Gorelo Agent:

<Tabs>
  <Tab title="Windows">
    ```powershell theme={null}
    # 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
    ```
  </Tab>

  <Tab title="macOS">
    ```shellscript theme={null}
    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
    ```
  </Tab>
</Tabs>
