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.