WARNING: This page is about a different car, the 2018 Hyundai Accent. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the negative (-) battery terminal.
Remove the mounting screws (2EA).
And then remove the overhead console (A).
Courtesy of HYUNDAI MOTOR AMERICA
Remove the overhead console after disconnect the connector (A).
Courtesy of HYUNDAI MOTOR AMERICA
Remove the overhead console lamp (B) by turning the socket.