1. Disconnect the negative battery cable.
2. To remove the front door hinge, remove the front fender panel.
3. To remove the checker, remove the door speaker.
4. Remove in the order indicated in the table.


5. Install in the reverse order of removal.
6. Adjust the front door. (See DOOR ADJUSTMENT.)
Connector Removal Note
1. Push the rubber boot backward.
2. Pull down the cover in the direction indicated by the arrow and disconnect the connector.

Rear door removal/installationMazda 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.
...
Mazda 6 Service Manual: Door adjustment
1. Measure the gap and height between the front or rear door and the body.
2. If not as specified, loosen the front or rear door hinge installation
bolts or the door lock striker installation screws, and reposition the door.
Clearance
a: 2.5-4.5 mm {0.10-0.18 in}
b: -0.8-1.2 mm {-0.03-0.0 ...