1. Remove the trunk lid trim. (4SD)
2. Remove the liftgate lower trim. (5HB)
3. Remove the bolts.
4. Disconnect the high-mount brake light connector. (4SD)
5. Remove the rear spoiler.

6. Install in the reverse order of removal.
Rear finisher removal/installation
Roof carrier bracket removal/installationMazda 6 Service Manual: Electrical parts
Battery cable
Before disconnecting connectors or removing electrical parts, disconnect
the negative battery cable.
Wiring Harness
To remove the wiring harness from the clip in the
engine room, pry up the hook of the clip using a
flathead screwdriver.
...
Mazda 6 Service Manual: Range of topics
This manual contains procedures for performing all required service
operations. The procedures are divided into the following five basic
operations:
Removal/Installation
Disassembly/Assembly
Replacement
Inspection
Adjustment
Simple operations which can be perf ...