Skip to content

Instantly share code, notes, and snippets.

@katallaxie
Last active June 20, 2022 06:13
Show Gist options
  • Save katallaxie/9860c05f61ae9ea8dd851e4f6ab771be to your computer and use it in GitHub Desktop.
Save katallaxie/9860c05f61ae9ea8dd851e4f6ab771be to your computer and use it in GitHub Desktop.
Remove Jamf from supervised Mac.

First, try to remove all profiles.

sudo /usr/bin/profiles -D

If this does not help, because the device is supervised, proceed the following way.

  1. Boot into recovery mode (CMD + R) and select Utilities > Terminal from the menu bar.
  2. Type csrutil disable in the terminal to disable the System Integrity Protection (SIP). Reboot your machine.
  3. Once you have logged in again, open the Terminal app and run the following command sudo rm -rf /var/db/ConfigurationProfiles/Store/* to remove all profiles.
  4. Exit the Terminal and reboot your mak.
  5. Once the Mac has rebooted, open the System Preferences > Profiles. You should be able to remove all pending profiles. Or try to run sudo /usr/bin/profiles -D again.
  6. Reboot again into recovery mode (CMD + R) and select Utitiles > Terminal from the menu bar again. Run csrutil enable to active SIP again.
  7. Afte you are logged in again, run sudo jamf removeFramework to clean up everything that is left over.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment