1. Remove the rear door glass.
2. Remove the inner handle.
3. Remove the rear door speaker.
4. Disconnect the power window motor connector, and power door lock actuator connector.
5. Remove the rear door harness from the rear door unit.
6. Remove the bolts.

7. Remove the rear door lock actuator hook from the rear door unit.
8. Pull the rear door unit slightly towards you, and while keeping the power window regulator or manual window regulator from catching on the door, remove the door unit from the door.
9. Pull out the inner handle cable and door lock knob cable from the hole.
10. For power window system-equipped vehicles, remove the power window motor and power window regulator from the door unit. For manual window system-equipped vehicles, remove the regulator handle and manual window regulator.

11. Install in the reverse order of removal.
Front door unit removal/installation
Front door latch and lock actuator removal/installationMazda 6 Service Manual: Clutch master cylinder disassembly/assembly
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
Snap Ring Disassembly/Assembly Note
Hold the piston down using a cloth-wrapped pin punch.
If disassembling, remove the snap ring; if assembling, install it.
...
Mazda 6 Service Manual: Solenoid valve removal/installation
1. Disconnect the negative battery cable.
2. Remove the under cover.
3. Remove the control valve body. (See CONTROL VALVE BODY REMOVAL.)
4. Remove the solenoid valve(s).
5. Apply ATF to a new O-ring and install it on the solenoid valve.
6. Install the solenoid valve in the control valve body. ...