1. Remove the rear door trim.
2. Remove the screw and bolt, then remove the glass guide.

3. Remove the quarter window and the molding together in one piece.
4. Remove the molding from the glass.
5. Install in the reverse order of removal.
Windshield installation
Rear window glass removalMazda 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.
...
Mazda 6 Service Manual: Windshield removal
1. Remove the rearview mirror.
2. Remove the cowl grille.
3. Remove the headliner.
4. Apply protective tape along the edge of the body to protect it from
damage.
5. Apply protective tape to the dashboard to protect it from damage.
6. Cut the lip of the windshield molding using a razor.
War ...