Uninstall Kapsul Agent

Complete uninstallation guide for the Kapsul agent on Windows and Linux

This guide describes the procedures for uninstalling the Kapsul agent on different supported platforms.

Uninstall on Windows

Via Control Panel

  1. Open the Control Panel
  2. Click on Programs and Features
  3. Search for Kapsul Agent in the list
  4. Right-click and select Uninstall
  5. Follow the wizard instructions

Via Command Line (Silent Mode)

For silent uninstallation, run as administrator:

msiexec /x {PRODUCT_CODE} /qn

Or if you have the original MSI file:

msiexec /x kapsul-setup.msi /qn

Via GPO

To uninstall the agent across the entire fleet via GPO:

  1. Open the Group Policy Management console
  2. Edit the deployment GPO
  3. Navigate to Computer Configuration > Policies > Software Settings > Software Installation
  4. Right-click the Kapsul package and select All Tasks > Remove
  5. Choose Immediately uninstall the software

Uninstall on Linux

Debian/Ubuntu

# Stop the service
sudo systemctl stop kapsul
 
# Uninstall the package
sudo dpkg --remove kapsul
 
# Completely remove (including configuration files)
sudo dpkg --purge kapsul

RHEL/CentOS

# Stop the service
sudo systemctl stop kapsul
 
# Uninstall the package
sudo rpm -e kapsul

Data Cleanup

After uninstallation, local data can be manually cleaned up if necessary.

Windows

rmdir /s /q "C:\ProgramData\Kabeen\Kapsul"
reg delete "HKLM\SOFTWARE\Kabeen\Kapsul" /f

Linux

sudo rm -rf /etc/kapsul
sudo rm -rf /var/log/kapsul
sudo rm -rf /opt/kapsul

Verification

After uninstallation, verify that:

Windows

  • The Kapsul service no longer appears in Windows services
  • The installation folder has been removed
  • Registry entries have been cleaned
sc query kapsul

Linux

  • The service is no longer listed:
systemctl status kapsul
  • Files have been removed:
ls -la /etc/kapsul
ls -la /opt/kapsul

Remove Server from Kabeen

After uninstalling the agent, you can also remove the server from your Kabeen inventory:

  1. Log in to the Kabeen platform
  2. Navigate to Infrastructure
  3. Select the relevant server
  4. Click Delete

Note: The server will be automatically marked as "Offline" after a few hours if the agent no longer sends data.