WARNING: This page is about a different car, the 2011 BMW X6 and 2010 BMW X6. However, it is still accessible from the selected car via links, so may be relevant.
Unlock hooks (1) with special tool 61 1 360 and push plug housing out of the socket.
Fig 1: Removing Tab Connector Housings Socket Using Special Tool (61 1 360)