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.
- Boot into recovery mode (
CMD + R
) and selectUtilities > Terminal
from the menu bar. - Type
csrutil disable
in the terminal to disable the System Integrity Protection (SIP). Reboot your machine. - Once you have logged in again, open the
Terminal
app and run the following commandsudo rm -rf /var/db/ConfigurationProfiles/Store/*
to remove all profiles. - Exit the
Terminal
and reboot your mak. - Once the Mac has rebooted, open the
System Preferences > Profiles
. You should be able to remove all pending profiles. Or try to runsudo /usr/bin/profiles -D
again. - Reboot again into recovery mode (
CMD + R
) and selectUtitiles > Terminal
from the menu bar again. Runcsrutil enable
to active SIP again. - Afte you are logged in again, run
sudo jamf removeFramework
to clean up everything that is left over.