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

3. Install in the reverse order of removal.
Front door latch and lock actuator removal/installation
Front door key cylinder removal/installationMazda 6 Service Manual: Location index
INTAKE-AIR SYSTEM
FUEL SYSTEM
Engine Room Side
Fuel tank side
EMISSION SYSTEM
Engine room side
CONTROL SYSTEM
...
Mazda 6 Service Manual: Center panel module removal/installation
1. Cancel the anti-theft operation. (with anti-theft system) (See ANTI-THEFT
SYSTEM.)
2. Disconnect the negative battery cable.
3. Remove the glove compartment.
4. Remove the rear console.
5. Remove in the order indicated in the table.
6. Install in the reverse order of removal.
Caution
...