Uninstalling Tanium Clients

Uninstall the Tanium Client on Windows

You can use various tools to uninstall the Tanium Client.

Use a Tanium package to deploy an uninstallation program

You can use the Tanium Core Platform to remove the Tanium Client from targeted endpoints. The uninst.exe program is in the Tanium Client installation directory.

  1. Access the Tanium Console.
  2. From the Main menu, go to Administration > Management > Global Settings.
  3. Select allow_process_group_flag_edit, click Edit, set the value to 1, and save the change.
  4. From the Main menu, go to Administration > Content > Packages and add a New Package that issues the uninstall command. The following is an example of the command to perform a silent uninstallation:

    cmd.exe /C ..\..\uninst.exe /S

    You must disable the option to Launch this package command in a process group.

  5. Create a scheduled action to distribute the package to targeted computers: see Tanium Console User Guide: Deploying actions.

The uninstallation program stops the Tanium Client service and removes the application files, so the Tanium Client will no longer be present to write Completed to the respective action log. Consequently, do not rely on the final action status reported in the Tanium Console to determine success or failure of the uninstallation action.

Use Add/Remove Programs

A user with Local Administrator rights on the endpoint can remove the Tanium Client through either the Windows Control Panel Add/Remove Programs or Programs and Features applet.

Uninstallation program

Double-click the uninst.exe program icon or execute the program from a command prompt.

The uninstall executable supports the /S command line parameter to perform a silent uninstall from a command prompt, script, package, or BAT file: uninst.exe /S

Uninstall the Tanium Client on macOS

Uninstall without using a script

  1. On the macOS endpoint, open Terminal.
  2. Run the following command to stop the Tanium Client and remove it from the launch list:

    sudo launchctl remove com.tanium.taniumclient

  3. Remove the following files and directories:

    • /Library/LaunchDaemons/com.tanium.taniumclient.plist
    • /Library/LaunchDaemons/com.tanium.trace.recorder.plist
    • /Library/Tanium/TaniumClient/ (directory)
    • /var/db/receipts/com.tanium.taniumclient.TaniumClient.pkg.bom
    • /var/db/receipts/com.tanium.taniumclient.TaniumClient.pkg.plist
    • /var/db/receipts/com.tanium.tanium.client.bom*
    • /var/db/receipts/com.tanium.tanium.client.plist*

    * These files appear only if a version of the Tanium Client earlier than 7.2.314.3608 was installed on the endpoint.

Uninstall using a script

To uninstall the Tanium Client silently from a command line, you can use a shell script such as the following:

#!/bin/bash

if [[ $(/usr/bin/id -u) -ne 0 ]]; then
     echo "Not running as root or using sudo"
     exit
fi

launchctl unload /Library/LaunchDaemons/com.tanium.taniumclient.plist
launchctl remove com.tanium.taniumclient > /dev/null 2>&1
rm /Library/LaunchDaemons/com.tanium.taniumclient.plist
rm /Library/LaunchDaemons/com.tanium.trace.recorder.plist
rm -rf /Library/Tanium/
rm /var/db/receipts/com.tanium.taniumclient.TaniumClient.pkg.bom
rm /var/db/receipts/com.tanium.taniumclient.TaniumClient.pkg.plist
rm /var/db/receipts/com.tanium.tanium.client.bom
rm /var/db/receipts/com.tanium.tanium.client.plist

Uninstall the Tanium Client on Linux

To uninstall the Tanium Client, run one of the following CLI commands, depending on the distribution type:

  • RPM-based Linux distributions such as Red Hat or SUSE:

    rpm -e $(rpm -qa --queryformat "%{NAME}\n"| grep -e '[Tt]anium[Cc]lient')

    This command might require sudo, depending on the environment.

  • Debian-based Linux distributions:

    dpkg -P taniumclient

Uninstall the Tanium Client on Solaris

To uninstall the Tanium Client on Solaris, run the following command, where the -A flag directs pkgrm to uninstall in the current zone only: pkgrm -A TaniumClient

Manage the Tanium Client on AIX

To uninstall the Tanium Client on AIX, run the following command: installp -u TaniumClient