You should remove the tie strap that retains the white connector to the drive cable tube
Sunroof Motor wiring harness, disconnect the sunroof motor/actuator wiring harness electrical connector, and remove the screws which retain the sunroof motor/actuator to the sunroof module assembly, and the sunroof motor/actuator from the sunroof module assembly.