Skip to main content

We removed JAMF from a laptop but it failed to remove the MDM profile. Now, without JAMF on the machine, what is the best way to remove the profile?

I know this is an older topic, but I just came across this issue as well and wasn't able to remove using sudo jamf removeFramework or sudo jamf removeMdmProfile. I also attempted sudo rm /var/db/.AppleSetupDone to no avail.

My device was enrolled via Pre-stage enrollment, and my profiles were not removed whenever I tried to run the above scripts. However, I was able to get back online using sudo profiles renew -type  enrollment. 

Hope this helps anyone else that is having this trouble!

After running sudo jamf removeFramework in termial I had the issue with the MDM Profile remaining on the machine and there for could not renroll it. Tried all the other suggestions and this was the only thing that worked for me. Didnt want to rebuild the machine as it would have taken ages to install all the applications again. Thanks ​@QGJZerk