The **CrowdStrike Falcon Sensor** is designed to be lightweight and unobtrusive, but there may be situations where you need to uninstall it. Uninstallation might be necessary for troubleshooting, device decommissioning, or transitioning to a different security solution.
This guide covers how to remove the Falcon Sensor from **Windows**, **macOS**, and **Linux** endpoints using both **manual methods** and **command-line scripts**.
## **Requirements**- Administrator privileges on the target system.
- CrowdStrike Falcon Console access (if using the “Prevent Sensor Uninstall” policy).
- PowerShell or Terminal access for command-line removal.
**Step 1: Retrieve the **Maintenance Token (Uninstall passcode)
Before uninstalling the Falcon Sensor, you need the Maintenance Token from the **CrowdStrike Falcon Console**.
- - **Log into the Falcon Console**
- Open a browser and go to: [https://falcon.crowdstrike.com](https://falcon.crowdstrike.com/) or [https://falcon.us-2.crowdstrike.com/](https://falcon.us-2.crowdstrike.com/) (Varies by tenant).
- Sign in with your **admin credentials**.
- Find the Uninstall Token
- Go to Hosts > Host Management.
- Search for the target device where you want to uninstall the sensor.
- Click on the three dot menu next to the host, select reveal maintenance token
- Enter a note in the textbox
- Click Reveal token
📌 **Note:** If you do not see the token, ensure that you have the correct permissions to view it.
---Step 2: Uninstall the Falcon Sensor Using the Maintenance token
Windows
- - **Open Command Prompt as Administrator**
- Press **Win + R**, type
- Run the Uninstall Command (Replace
YOUR-CODEwith the actual code retrieved from the Falcon Console)WindowsSensor.exe /uninstall /quiet /norestart PASSWORD=YOUR-CODE - Verify Uninstallation
- Check if Falcon Sensor is removed from Control Panel > Programs and Features.
- Run the following command to confirm that the service no longer exists:
sc query csagent - If it returns "The specified service does not exist as an installed service", the sensor has been successfully removed.
cmd, and press **Ctrl + Shift + Enter** to run as administrator.
macOS
- - **Open Terminal** (
Command + Space, type "Terminal").
- **Run the Uninstall Command** (Replace YOUR-CODE with the actual code retrieved from the Falcon Console)sudo /Applications/Falcon.app/Contents/Resources/falconctl uninstall --token YOUR-CODEsudo /Applications/Falcon.app/Contents/Resources/falconctl statsIf the sensor was uninstalled successfully, you should see **"command not found"**.
Linux
- - **Open Terminal**.
- **Run the Uninstall Command** (Replace
YOUR-CODE with the actual code retrieved from the Falcon Console)sudo falconctl uninstall --token YOUR-CODEsudo systemctl status falcon-sensorIf the sensor has been successfully uninstalled, it should return **"Unit falcon-sensor.service could not be found."**
Troubleshooting Uninstallation Issues
1. “Invalid Token” Error
- Ensure you are using the correct code from the Falcon Console.
- If your code expired, retrieve a new one.
2. “Access Denied” Error
- Make sure you are running the command as an administrator (Windows) or using sudo (Linux/macOS).
- Some security tools may block the command—try running it in Safe Mode.
3. Falcon Sensor Still Appears After Uninstalling
- Restart the machine and check again.
sc query csagentIf it is still running, manually stop and delete the service before rerunning the uninstall command.
Alternative Method: Disable Sensor Tamper Protection (Not Recommended)
If you don’t want to use a maintenance token, you can disable Sensor Tamper protection before uninstalling.
Check if **Sensor Uninstall Protection** is enabled in the **CrowdStrike Falcon Console**:
- - **Log into the Falcon Console**: [https://falcon.crowdstrike.com](https://falcon.crowdstrike.com/).
- Navigate to **Hosts** > **Sensor Update Policies**.
- Locate the policy assigned to the target device.
- If “Prevent Sensor Uninstall” is **enabled**, disable it and save changes.
Best Practices
✅ **Use a maintenance code Instead of Disabling Protection** – Keeps security policies intact while allowing authorized removals.
✅ **Retrieve Maintenance code Before Uninstalling** – Ensure you have the latest uninstall token before attempting removal.
✅ **Verify Uninstallation** – Always check that the sensor has been fully removed from the system.