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: Precaution
Vehicles with ABS/TCS
1. The ABS warning light, BRAKE system warning light, TCS indicator light
and/or TCS OFF light illuminate even when the system is normal.
*1 : In cases where the light may illuminate, only when ABS/TCS HU/CM detects
that speed sensor of rear wheel is malfunctioning.
*2 ...
Mazda 6 Service Manual: Electrical parts
Battery cable
Before disconnecting connectors or removing electrical parts, disconnect
the negative battery cable.
Wiring Harness
To remove the wiring harness from the clip in the
engine room, pry up the hook of the clip using a
flathead screwdriver.
...