Removal Instructions

Removal Instructions

This article will show you the recommended way to uninstall the Kolide agent for each supported platform.

macOS

The recommended way to uninstall the macOS version of the Kolide agent is through a special uninstall command from the terminal.

  1. Open Terminal.app

  2. Once the terminal is open, type (or copy and paste) the following command:

    sudo /usr/local/kolide-k2/bin/launcher uninstall
    
  3. Press the Enter key.

  4. You will be prompted for your computer password. Type it in when prompted and press Enter. As a security precaution, your password will not be displayed as you type it into the terminal.

  5. When successful, you will see the message: Kolide launcher uninstalled successfully

Manual Removal Instructions

If the launcher uninstall command is unavailable, or you are looking for a manual process to remove the agent, follow the instructions below.

Danger:
The following instructions invoke dangerous commands that, if mistyped or pasted incompletely, could result in the removal of important system files or personal data. Please reach out to an IT administrator for your organization if you need help with removing the agent.

  1. Open Terminal.app

  2. Run the following commands:

    sudo launchctl unload /Library/LaunchDaemons/com.kolide.launcher.plist
    sudo rm /Library/LaunchDaemons/com.kolide.launcher.plist
    sudo rm /etc/newsyslog.d/kolide-k2
    sudo /usr/sbin/pkgutil --forget com.kolide.k2.launcher
    sudo rm -r /usr/local/kolide
    sudo rm -r /var/kolide
    sudo rm -r /etc/kolide
    sudo rm -r /var/log/kolide-k2
    
  3. You will be prompted for your computer password. Type it in when prompted and press Enter. As a security precaution, your password will not be displayed as you type it into the terminal.

Windows

Uninstalling the Kolide agent on Windows can be done via the Add/Remove Programs section of the Control Panel.

  1. Select Start > Settings > Apps > Apps & features.

  2. Locate the app that starts with Kolide launcher and select More > Uninstall.

  1. The uninstall will leave the prior launcher database in C:\Program Files\Kolide\Launcher-kolide-k2. For a complete removal, this directory can be deleted through Windows Explorer or from an Admin PowerShell window with: powershell Remove-Item -LiteralPath "C:\Program Files\Kolide\Launcher-kolide-k2" -Force -Recurse

Linux

The recommended way to uninstall the Linux version of the Kolide agent is through a special uninstall command from the terminal.

  1. Open the terminal.

  2. Once the terminal is open, type (or copy and paste) the following command:

    sudo /usr/local/kolide-k2/bin/launcher uninstall
    
  3. Press the Enter key.

  4. You will be prompted for your computer password. Type it in when prompted and press Enter. As a security precaution, your password will not be displayed as you type it into the terminal.

  5. When successful, you will see the message: Kolide launcher uninstalled successfully

Manual Removal Instructions

Danger:
The following instructions invoke dangerous commands that, if mistyped or pasted incompletely, could result in the removal of important system files or personal data. Please reach out to an IT administrator for your organization if you need help with removing the agent.

Open the terminal and run the commands for your flavor of Linux listed below.

Ubuntu / Debian-Based Linux:

sudo systemctl stop launcher.kolide-k2
sudo systemctl disable launcher.kolide-k2
sudo dpkg --purge launcher-kolide-k2
sudo rm -rf /var/kolide-k2 /etc/kolide-k2

CentOS / RPM-Based Linux:

sudo systemctl stop launcher.kolide-k2
sudo systemctl disable launcher.kolide-k2
sudo rpm -e launcher-kolide-k2
sudo rm -rf /var/kolide-k2 /etc/kolide-k2