First, try to remove all profiles.
sudo /usr/bin/profiles -DIf this does not help, because the device is supervised, proceed the following way.
- Boot into recovery mode (
CMD + R) and selectUtilities > Terminalfrom the menu bar. - Type
csrutil disablein the terminal to disable the System Integrity Protection (SIP). Reboot your machine. - Once you have logged in again, open the
Terminalapp and run the following commandsudo rm -rf /var/db/ConfigurationProfiles/Store/*to remove all profiles. - Exit the
Terminaland 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 -Dagain. - Reboot again into recovery mode (
CMD + R) and selectUtitiles > Terminalfrom the menu bar again. Runcsrutil enableto active SIP again. - Afte you are logged in again, run
sudo jamf removeFrameworkto clean up everything that is left over.