Posted on 07-14-2017 03:30 PM
Are you migrating from CiscoMerkai SystemsManager? Here's a script that @HCSTech wrote (with a tiny bit of help from me) to remove both the agent and the profile.
Also you might want to see this article on how to add this as a preinstall script to your QuickAdd package.
#!/bin/sh
####################################################
## Remove Existing Meraki Components and Unenroll MDM
####################################################
#!/usr/bin/env bash
launchctl unload /Library/LaunchDaemons/com.meraki.agentd.plist
/bin/rm -f /usr/sbin/m_agent /usr/sbin/m_agent_upgrade
/bin/rm -rf '/Library/Application Support/Meraki/'
/bin/rm -f /Library/LaunchDaemons/com.meraki.agentd.plist
/usr/bin/profiles -R -p com.meraki.sm.mdm
exit 0
exit 1
Posted on 07-16-2017 10:30 PM
We just went through the same change and put together almost exactly the same script. Works really well!
Posted on 08-24-2017 10:48 AM
Thank you @arekdreyer. So far so good over here.
Posted on 06-16-2020 12:42 PM
/usr/bin/profiles -R -p com.meraki.sm.mdm
That was the one part I didn't include. Thanks