1. Remove the front door unit.
2. Remove the cover, then remove the bolt.

3. For protector-equipped vehicles, pull out the protector tab from the latch and remove the protector.

4. Disconnect the rod.
5. Remove the front outer handle.
6. Turn the key cylinder in the direction indicated by the arrow (1) and move the hook to the notch.

7. Pull the key cylinder towards you (2) to remove it.
8. Install in the reverse order of removal.
Rear door latch and lock actuator removal/installation
Front outer handle removal/installationMazda 6 Service Manual: Exterior lighting system
...
Mazda 6 Service Manual: Glass panel adjustment
1. Fully close the glass panel.
2. Measure the gap and height between the glass panel and body.
3. If not as specified, loosen the glass panel installation screws and
reposition the glass panel.
Clearance
a: -0.8-1.2 mm {-0.032-0.047 in}
b: 0 mm {0 in}
4. Tighten the installation scre ...