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
- Open the Control Panel
- Click on Programs and Features
- Search for Kapsul Agent in the list
- Right-click and select Uninstall
- Follow the wizard instructions
Via Command Line (Silent Mode)
For silent uninstallation, run as administrator:
msiexec /x {PRODUCT_CODE} /qnOr if you have the original MSI file:
msiexec /x kapsul-setup.msi /qnVia GPO
To uninstall the agent across the entire fleet via GPO:
- Open the Group Policy Management console
- Edit the deployment GPO
- Navigate to Computer Configuration > Policies > Software Settings > Software Installation
- Right-click the Kapsul package and select All Tasks > Remove
- 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 kapsulRHEL/CentOS
# Stop the service
sudo systemctl stop kapsul
# Uninstall the package
sudo rpm -e kapsulData 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" /fLinux
sudo rm -rf /etc/kapsul
sudo rm -rf /var/log/kapsul
sudo rm -rf /opt/kapsulVerification
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 kapsulLinux
- The service is no longer listed:
systemctl status kapsul- Files have been removed:
ls -la /etc/kapsul
ls -la /opt/kapsulRemove Server from Kabeen
After uninstalling the agent, you can also remove the server from your Kabeen inventory:
- Log in to the Kabeen platform
- Navigate to Infrastructure
- Select the relevant server
- Click Delete
Note: The server will be automatically marked as "Offline" after a few hours if the agent no longer sends data.