If the MDM profile is unremovable, you must first erase the device.
- Erase the device by navigating to , or restore the device to factory settings following Apple's instructions (see Restoring iPhone or iPad to Factory Settings in Apple Device Support Tutorials).
- Re-enroll the device using either Automated Device Enrollment or Device Enrollment (user-initiated enrollment).
The MDM profile will be reinstalled during the enrollment process.