how many milles take clear code to reset on 1999 GMC Jimmy

wen gassing up the light come on

1 answer 1 comment
Not reset by mileage but number of ignition cycles or starts. To clear now can unhook battery neg. term. for a minute! Did you have the engine running while refulling?
no i didn't know i can.should i try that?