Uninstall Uptycs
Windows#
Option 1: Uninstall Using the MSI Installer#
If you have the MSI installer file, run the following command to uninstall:
msiexec /i <osquery msi file complete path>
Option 2: Uninstall Using the product code#
If you do not have the MSI installer file, you can uninstall using the product code.
- Obtain the product code:
Get-WmiObject Win32_Product | Select-Object Name, IdentifyingNumber | findstr -i osquery - Run the following command:
msiexec /x <PRODUCT-CODE>
Option 3#
wmic is not installed in Windows 11 by default - use option 1 or 2 for Windows 11 devices
- Open a Command Prompt and run the following to stop the service:
sc stop uptycsosquery - Check the status of osquery using the following command:
sc query uptycsosquery - Check for the osquery PID using the following command:
tasklist | findstr -i osquery - If osquery is still running then kill the osquery PID. Execute the following command on the administrative cmd:
taskkill /pid /f - Run the following to remove:
wmic product where name="Uptycs-Osquery" call uninstall /nointeractive > NUL - Navigate to Control Panel and check if Uptycs-OSquery is still present. If so, uninstall it.
MacOS#
- Remove
/usr/local/bin/osquery* - Remove
/var/log/osquery - Remove
/var/osquery - Unload and remove
/Library/LaunchDaemons/com.facebook.osqueryd.plist
On macOS,
/varis/private/varbut they are symlinked.
If you’re running Uptycs Protect, use Finder to drag /Applications/UptycsProtect.app to the Trash to unload the system extension immediately. Reboot the system to complete the uninstall.
Linux#
Uninstall with rpm#
text
sudo systemctl stop osqueryd
sudo rpm -e osquery
# Cleanup osquery directories
sudo rm -rf /etc/osquery
sudo rm -rf /var/osquery
sudo rm -rf /var/log/osqueryUninstall with yum#
text
sudo systemctl stop osqueryd
sudo yum remove osquery -y
# Cleanup osquery directories
sudo rm -rf /etc/osquery
sudo rm -rf /var/osquery
sudo rm -rf /var/log/osqueryDebian#
Run the commands below to list all install packages if needed.
textsudo apt list --installedStop the service.
textsudo service osqueryd stopUninstall osquery.
textsudo apt remove osqueryd