@BlakeRichardson Usually when you remove a device from Meraki dashboard and re-enroll, it is fresh. I am wondering why you are experiencing this issue. Anyways, you could use the apple script below to remove the agent:
on onConfirmUninstall()
set applicationName to "Meraki Systems Manager"
try
display dialog "Are you sure you want to uninstall " & applicationName & "?"
set uninstallScript to quoted form of POSIX path of (path to resource "uninstall.bash")
do shell script "bash " & uninstallScript with administrator privileges
display dialog "Successfully Uninstalled " & applicationName buttons {"OK"} default button "OK"
on error err
if err contains "User canceled" then
display dialog "Canceled " & applicationName & " Uninstall" buttons {"OK"} default button "OK"
else
display dialog "We're sorry, but there was an error uninstalling " & applicationName & " described as: " & err buttons {"OK"} default button "OK"
end if
end try
end onConfirmUninstall
onConfirmUninstall()
You could edit it so it requires no user interaction. I found this in Dashboard > Clients > Add Devices > MacOS > You will see a button to download the uninstaller. It is just an Apple Script app, I just opened it an extracted the code.
Jared
Find this helpful? Click the kudos button. Thanks!