This is what you are left with, all the fixings are circled.

Remove...

..all..

..four..

..torx bolts and screws.

Pull the light directly towards you to access the wiring behind it.

The main wiring connector pulls out by pressing the tabs each side and pulling.

Grab the indicator bulb holder and twist it about 40 degrees and pull it out.

You can now pull the headlight away from the car.

Repeat on the otherside if necessary.