To replace the bulb, the lamp assembly must be removed from the vehicle:
NOTE: Take care that holding clip (A) is not to be damaged.
NOTE: When turning the bulb grip counterclockwise, the bulb and connector are removed at the same time.
Thyis picture is not like my 2007 Optima car
It won't be an "exact" match, but that is the procedure, straight from the manual for a 2007 Kia Optima.