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: Cruise control switch inspection
1. Disconnect the negative battery cable.
2. Remove the driver-side air bag module. (See DRIVER-SIDE AIR BAG MODULE
REMOVAL/INSTALLATION.)
3. Disconnect the cruise control switch connector.
4. Inspect for resistance and continuity between the cruise control switch
terminals using an ohmmeter. ...
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.
...