- The device must be enrolled and present;
- The device must appear as “Online”.
Device Online
If these conditions are met, simply select the device > Actions > Disenroll. The MDM will be removed from the device - immediately on macOS and after a brief delay on Windows.
Device Offline
When a device is offline, the disenrollment action is unavailable. You’ll need to wait for the device to come back online to uninstall the MDM. In such cases, you can use the “Mark as disenrolled” action to indicate that a device is no longer under MDM management when communication has already been lost.Manually uninstalling an MDM agent

Uninstalling on Windows
Important: You need administrator access on the device to uninstall the MDM on Windows.
- Click on the Start button > Settings, then click on Accounts
-
Go to Accounts then Access work or school

- You will see a list of accounts managing the device. Look for the entry corresponding to the MDM, for example, Managed by Fleet MDM
-
Select the MDM account, then click Disconnect or Remove

- Follow the instructions to completely remove the management device from the device
- Type Control Panel in the taskbar search box and select it from the list of results.
- Select Programs > Programs and Features.
- Press and hold (or right-click) on the Fleet osquery program and select Uninstall or Uninstall/Change.
- Then follow the on-screen instructions.
Uninstalling on macOS
- On your Mac, open System Settings > Privacy & Security
- Click on Profiles on the right. (You may need to scroll down)
-
To remove a profile: select the profile named “[Your Company] enrollment”, then click on the ➖ button

-
Finally, click on Remove

- Enter your session password