1. Remove the screws.
2. Press clip A in the direction of the arrow, pll the radiator grille outward and remove from the front bumper.

3. Install in the reverse order of removal.
Cowl grille removal/installationMazda 6 Service Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...
Mazda 6 Service Manual: Solenoid valve removal/installation
1. Disconnect the negative battery cable.
2. Remove the under cover.
3. Remove the control valve body. (See CONTROL VALVE BODY REMOVAL.)
4. Remove the solenoid valve(s).
5. Apply ATF to a new O-ring and install it on the solenoid valve.
6. Install the solenoid valve in the control valve body. ...