WARNING: This page is about a different car, the 2020 Mazda MX-5 Miata. However, it is still accessible from the selected car via links, so may be relevant.
Using the retractable fastback switch, keep the rear roof open.
Courtesy of MAZDA MOTORS CORP.
Remove the tape.
Courtesy of MAZDA MOTORS CORP.
Disconnect the connector.
Remove the clip.
Remove the nuts.
Fig 1: Rear Roof, Clip And Nuts With Torque Specification