1. Fully open the glass panel.
2. Remove the headliner.
3. Remove the screws.
4. Disengage the hooks.
(1) Press the rear end of each hook.
(2) After sliding the hooks rearward, press them upward.
5. Remove the deflector.

6. Install in the reverse order of removal.
Sliding sunroof
Glass panel removal/installationMazda 6 Service Manual: Variable air duct (vad) control solenoid valve inspection (l3)
1. Remove the VAD control solenoid valve. (See INTAKE-AIR SYSTEM
REMOVAL/INSTALLATION.)
2. Inspect airflow between the ports under the following conditions.
If not as specified, replace the VAD control solenoid valve.
If as specified, carry out the Circuit Open/Short Inspection.
Circ ...
Mazda 6 Service Manual: Dtc clearing procedure
1. Start the on-board diagnostic test mode.
2. First press the POWER button, then simultaneously press AUDIO CONT button
for 2 seconds or more.
Caution
Before clearing the DTCs, be sure to enter all of them displayed
in the on-board diagnostic test mode in the Audio Repair Order Form. ...