1. Open the Intune Company Portal app and under the “My Devices” section find the device you would like to remove, tap on it, then at the bottom tap on Remove (the trashcan icon).
2. At the top right corner, tap on the user icon and select Sign Out. This will bring you to the app login screen.
3. At this point the MDM management profile should already be removed from the device. To confirm, go to the Settings app and select General. Scroll down and look for “Device Management”. If you do not see this item, then the profile has been removed. If “Device Management” is still there, then select it and remove as indicated below.