I had this happen to me also because the "instructional" videos I watched never mentioned about pulling the fuse.
I did not even bother to clear the code and my CEL went off on its own. The codes are probably still "readable" with a scanning tool but the light is out and everything is working correctly.
Im just going to give my experience regarding disconnecting gauges without pulling main fuse (knowing that best practice from Service manual seems to have you disconnecting battery with many procedures)
Ive done this twice (for bar replacement and then again to readjust them) I am about to do it a third time when my 16" Spearheads show up. As Beerhunter says, the instructional videos never say to disconnect, so I didnt. No codes thrown either time.
What I did....
I did not pull the ignition switch out, I popped out the chrome cover (gently) to allow space to pull the gauges over the switch.
I had my key fob in range throughout the entire procedure.
I then moved the switch from Off to the Locked position allowing me to wiggle off the gauges. Key fob stayed in range for the entire procedure. (works pretty easy to wiggle off without messing with the switch or its position. havent broken the chrome cover yet, but found pretty it cheap on ebay if I do)
Did the bar replacement.
Reassembled everything, and then moved the ignition to the on position.... no codes.
I then went in to see if there were any codes stored (just because I could), and there were none. No light, no codes lurking.
Im not saying this is the right way to do it.
Im not saying I know why this works (I dont)
Im just passing on my experience in case it helps.
And I probably jinxed myself for my upcoming (and hopefully final) bar replacement.<img src="https://www.roadglide.org/images/RoadGlide_2015/smilies/tango_face_wink.png" border="0" alt="" title="Wink" class="inlineimg" />