1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Disconnect the connector.
4. Remove the screws, and then remove the sunroof motor.

Sunroof unit disassembly/assembly
Sunroof motor installationMazda 6 Service Manual: Side air bag module removal/installation
Warning
Handling the air bag module improperly can accidentally deploy the
air bag module, which may seriously injure you. Read AIR BAG SYSTEM SERVICE
WARNINGS before handling the air bag module. (See SERVICE WARNINGS.)
Warning
If the side air bag module is installed with debris in ...
Mazda 6 Service Manual: After repair procedure
Caution
After repairing a malfunction, perform this procedure to verify that the
malfunction has been corrected.
When this procedure is carried out, be sure to drive the vehicle at lawful
speed and pay attention to the other vehicles.
1. Connect the WDS or equivalent to the DLC-2.
2. Turn th ...