Disconnect the connector.
Using "TORX" socket wrench T30, remove the screw and the courtesy light switch.