1. Remove the front door unit.
2. Remove the screws, then remove the front door latch and door lock actuator.

3. Install in the reverse order of removal.
Rear door unit removal/installation
Rear door latch and lock actuator removal/installationMazda 6 Service Manual: Wheel hub, hub spindle removal/installation
Caution
Performing the following procedures without first removing the ABS
wheel-speed sensor may possibly cause an open circuit in the harness if it
is pulled by mistake. Before performing the following procedures, remove the
ABS wheel-speed sensor (body side) and fix it to an appropri ...
Mazda 6 Service Manual: Power Window Lock Switch
This feature prevents all power windows from operating, except the driver's power
window. Keep this switch in the locked position while children are in the vehicle.
Locked position (button depressed):
Only the driver's power window can be operated.
Unlocked position (button not depressed):
All ...