WARNING: This page is about a different car, the 2018 BMW 340i, 2017 BMW 340i, and 2016 BMW 340i. However, it is still accessible from the selected car via links, so may be relevant.
Unlock and loosen engine ventilation line (1).
Unlock and release tank ventilation line (2).
Unlock and detach clamp (3) on exhaust turbocharger.