macOS, delete profiles that need password There is a profile I installed many days ago and I forget the password, how can I delete it?
You can back up the Mac and then boot to recovery and erase it. The MDM profiles are designed to resist cracking so erase and restore is often the fastest method.

https://support.apple.com/en-us/HT204904