See Install or remove configuration profiles on iPad. To remove network settings installed by MDM, go to Settings > General > VPN & Device Management, select the management, then tap Remove Management. This also removes other settings and certificates provided by MDM.