1. Remove the front door trim.
2. Using a flathead screwdriver, press and hold the hook in the direction indicated by arrow (1), and pull the shaft in the direction indicated by arrow (2), remove the shaft.

3. Pull off the inner handle, and remove the door lock knob cable and inner handle cable.
4. Install in the reverse order of removal.
Rear outer handle removal/installation
Regulator handle removalMazda 6 Service Manual: Leaving Home Light
The leaving home light turns on the lights when the transmitter unlock button
is pressed while away from the vehicle.
The following lights turn on when the leaving home light is operated.
Low beams, Parking lights, Taillights, License lights.
To turn on the lights
When the ignition switch and ...
Mazda 6 Service Manual: Generator removal/installation
Warning
When the battery cables are connected, touching the vehicle body with
generator terminal B will generate sparks. This can cause personal injury, fire,
and damage to the electrical components. Always disconnect the battery negative
cables before performing the following operation.
...