Take the appropriate action and verify that the warning light turns off.

Taking Action
Message Indicated on DisplayMazda 6 Owners Manual: Expansion valve removal/installation
1. Disconnect the negative battery cable.
2. Discharge the refrigerant from the system. (See RECOVERY.) (See CHARGING.)
Caution
If moisture or foreign material enters the refrigeration cycle,
cooling ability will be lowered and abnormal noise will occur. Always
immediately plug open fitt ...
Mazda 6 Owners Manual: Thermostat
THERMOSTAT REMOVAL/INSTALLATION
1. Remove the plug hole plate.
2. Disconnect the negative battery cable.
3. Drain the engine coolant. (See COOLING SYSTEM SERVICE WARNINGS.)
4. Remove the drive belt. (See DRIVE BELT REPLACEMENT.)
5. Remove the washer tank.
6. Remove the P/S oil pump.
Note
...