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: Air intake actuator inspection
1. Connect battery positive voltage to terminal D or F and ground to terminal
F or D of the air intake actuator.
2. Verify that the air intake actuator operates as shown below.
If not as specified, replace the air intake actuator.
...
Mazda 6 Service Manual: Transaxle fluid temperature (tft) sensor inspection
On-Vehicle Inspection
1. Disconnect the negative battery cable.
2. Remove the air cleaner component. (See INTAKE-AIR SYSTEM
REMOVAL/INSTALLATION.)
Caution
Water or foreign objects entering the connector can cause a poor
connection or corrosion. Be sure not to drop water or foreign object ...