61 31 241 Removing and installing/replacing engine hood contact switch
WARNING: This page is about a different car, the 2003 BMW X5, 2002 BMW X5, and 2001 BMW X5. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect plug connection (1).
Move engine hood contact switch (2) in direction of arrow and pull out.