WARNING: This page is about a different car, the 2006 BMW X5, 2005 BMW X5, and 2004 BMW X5. However, it is still accessible from the selected car via links, so may be relevant.
Unscrew nut (1).
Disconnect plug connection and disconnect plug connection (3).