Decommission a device
Use this page when devices should no longer run the Merge Workforce desktop client: a few pilot testers who want out, devices leaving your managed fleet, or the end of a deployment across your organization. It is a two-part change: take the devices out of your MDM’s scope, then clear the client from them.
Removing the client needs administrator rights on the device and access to your MDM. Employees cannot do this themselves: even with local admin rights, your MDM reinstalls required software at its next check-in, and the device goes quiet in Devices until it does. Employees with a reason to remove the client should contact IT.
Taking a device out of your MDM’s scope only stops the MDM from reinstalling the client. It does not remove what is already installed. Run the uninstall through your MDM as well: it already has the administrator rights the uninstall needs, nobody has to sign in to the device, and the same steps work for one device or every device. Commands to run on a single device are at the end of each tab, for when your MDM cannot run them for you.
macOS
Windows
Recommended: run the uninstall script through your MDM
Pick the target first: the devices you want to decommission, or every device for an organization-wide removal. Use that same target in each step.
- Unassign the package. Remove the target from the Merge Workforce package assignment, so the MDM stops reinstalling the client.
- Run the uninstall script. Add the script below to your MDM as a script that runs as root, and run it on the target. In Jamf Pro this is a policy with a script payload, in Iru a custom script, and in Mosyle a custom command.
- Check the result. Each device’s script output ends with
Merge Workforce desktop client removed. If anything was left behind, the output lists it and the run reports a failure, so you can rerun it on only those devices. - Remove the configuration profile. Unassign the Merge configuration profile from the target. This also removes the
com.merge.workforceclientmanaged preferences, so do not delete them by hand.
The script stops the background service before the menu bar app, because the service starts the app. It is safe to run more than once: anything already gone is skipped.
KEEP_STATE=false also clears the client’s enrollment state, logs, and stored device id. Set it to true if you plan to reinstall on the same devices and want them to return with their previous enrollment.
On a single device without your MDM
Use this when your MDM cannot run scripts, or for a one-off test machine. Take the device out of the package and profile assignments first, then run these in Terminal as an administrator:
To also clear local data, the same as KEEP_STATE=false:
To confirm it is gone, pgrep -fl merge-workforce-tray and ls /Applications/Merge.app should both return nothing, and the Merge icon is gone from the menu bar.
What happens in Merge
Removing the client does not change your organization’s settings, Groups, or connected tools. Each device stays in Devices: it stops heartbeating, and after 30 minutes it shows as not reporting, with the time it went quiet.
To put the client back, return the devices to your MDM assignment, or see Reset a device.