Removing Mac MDM Profiles Manually
Do not use this method if you are able to click on the “Management Profile” within System Preferences (System Settings in Mac OS 13 +) / Privacy & Security and the “-” at the bottom of the window is not greyed out.
Boot the Mac into Recovery Mode (hold down command+R during startup).
With Mac OS 13+, completely shut down the device.
Press and hold the power button on your Mac until the system volume and the Options button appear.
Click the Options button, then click Continue.
If asked, select a volume to recover, then click Next.
Select an administrator account, then click Next.
Enter the password for the administrator account, then click Continue.
Go to the Utilities menu and open Terminal and type:
csrutil disable
. This will disable SIP (System Integrity Protection).Reboot into the OS.
Open the integrated terminal and type:
su admin
input administrative password
cd /var/db/ConfigurationProfiles
rm -rf *
mkdir Settings
touch Settings/.profilesAreInstalled
Reboot
Boot the Mac into Recovery Mode
Go to the Utilities menu and open Terminal and type:
csrutil enable
. This will re-enable SIP.Reboot into the OS.