Remove or Delete MDM from Android Devices

On the Android devices, go to Settings > General Management > Reset > Factory Data Reset