1. Insert a screwdriver between the mirror and the base.

2. Push the base pin down to remove the rearview mirror.
Rearview mirror
Rearview mirror installationMazda 6 Service Manual: Wheel hub, hub spindle removal/installation
Caution
Performing the following procedures without first removing the ABS
wheel-speed sensor may possibly cause an open circuit in the harness if it
is pulled by mistake. Before performing the following procedures, remove the
ABS wheel-speed sensor (body side) and fix it to an appropri ...
Mazda 6 Service Manual: Immobilizer system reprogram procedure
Note
When an error occurs during the reprogram procedures, except when
the PCM is replaced, repeat the procedure from Step 1. If you still cannot
reprogram, confirm how many keys can start the engine. Then, perform the key
replacement or addition reprogram procedure according to the val ...