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: Generator removal/installation
Warning
When the battery cables are connected, touching the vehicle body with
generator terminal B will generate sparks. This can cause personal injury, fire,
and damage to the electrical components. Always disconnect the battery negative
cables before performing the following operation.
...
Mazda 6 Service Manual: Cruise Control (Some models)
With cruise control, you can set and automatically maintain any speed of more
than about 25 km/h (16 mph).
WARNING
Do not use the cruise control under the following conditions: Using
the cruise control under the following conditions is dangerous and could result
in loss of vehicle control.
...