Here's what you should do:
1. Diagnose the problem: The CEL is there for a reason. The best approach is to get the diagnostic trouble codes (DTCs) read using an OBD-II scanner. Auto parts stores often offer free code reading services. This will tell you *why* the light is on.
2. Fix the problem: Once you know the code(s), you can address the underlying issue. This might be something simple (like a loose gas cap) or something more complex requiring professional repair. Fixing the problem is crucial.
3. Clear the code (after repair): *Only after you've addressed the problem causing the CEL*, you can clear the code. Many OBD-II scanners allow you to clear codes. Some advanced scanners even let you clear specific codes, which is helpful if you're only fixing one of multiple issues. After clearing the code, drive the vehicle for a short period to allow the computer to monitor for problems. The CEL should remain off if the problem is fixed.
Disconnecting the battery: While disconnecting the battery might temporarily turn off the light, it won't actually *fix* the underlying problem. The light will likely return unless the root cause is resolved.
In short: Don't focus on resetting the light; focus on *fixing the problem*. Getting the codes read is the first and most important step.