What a clear actually erases
The clear command (OBD-II mode 04) goes to every emissions-related control unit at once. Each one that accepts it wipes:
- stored and pending codes, and the check engine light they turned on
- the freeze frame: engine speed, load, coolant temperature and fuel trims at the moment the fault was set
- readiness monitor results, which all go back to incomplete
- the counters for distance, time and warm-ups since codes were cleared, which start again from zero
Permanent codes survive. On cars that report them (generally 2010 and newer in the US) a permanent code only goes away after the car re-runs the test that set it and passes.
When clearing makes sense
- After a repair, to confirm the fix. If the code stays away through the next few drives, the repair worked.
- After a loose fuel cap set an evaporative leak code such as P0455 or P0456. Tighten the cap until it clicks, clear, and watch whether it returns.
- When you know the cause, it is harmless, and you want to see whether it was a one-off.
When not to clear
- The light is flashing. That usually means a misfire bad enough to overheat the catalytic converter. Clearing hides the warning while the damage continues.
- You have not written the codes and freeze frame down. A mechanic uses the freeze frame to see the conditions when the fault happened, and a clear deletes it for good.
- An emissions inspection is coming up. Every monitor resets to incomplete, and the inspection station rejects a car with too many incomplete monitors. In the US, model years 2001 and newer may have at most one, 1996 to 2000 at most two.
- You are selling the car. Recently cleared codes are easy to spot: few kilometres since the clear and several monitors incomplete. Buyers with a scanner look for exactly that.
How to clear codes with a scanner
Park the car, set the parking brake and turn the ignition on. Most cars accept a clear with the engine off and the ignition on; some want the engine running.
Plug the adapter into the OBD-II port under the dashboard and connect your app.
Read all codes first and save them with the freeze frame. Look each one up so you know what you are erasing.
Send the clear. On most cars the check engine light goes out within a few seconds.
Scan again. A code that is back at once means the fault is still present. A permanent code that remains is normal until the car re-tests that system.
Drive normally over the next days and scan again before an inspection to see how many monitors have completed.
What about disconnecting the battery?
On many cars it clears codes too, along with the radio presets, the idle and transmission learning, and sometimes the window auto-up settings. It erases the same readiness data a scanner does, gives you no record of what the codes were, and can leave the car idling roughly until it relearns. A scanner is the cleaner way.
Why the light comes back
The control unit keeps running the same self-tests. When the fault is still there, the test fails again and the light returns, sometimes on the next drive, sometimes after the specific conditions that test needs. Some codes need two failed drives in a row before the light turns on, so a code can sit as pending for a while before you see anything on the dashboard.
Questions
Does clearing a code fix the problem?
No. It erases the record of the fault and turns the light off. If the cause is still there, the car sets the code again.
How long after clearing codes can I pass an emissions test?
It depends on the car and how you drive. Most monitors complete over a few days of mixed driving, but the evaporative system monitor can take longer because it needs specific fuel level and temperature conditions. Scan before you go: in the US, 2001 and newer cars may have no more than one incomplete monitor.
Can I clear a permanent code?
Not with a scanner. Permanent codes go away on their own once the related test runs and passes, which needs the fault to be fixed first.
Codes this guide touches
Other guides
Sources
General information, not a diagnosis of your car. Have a qualified mechanic confirm the cause before you replace parts, and stop driving if the car runs badly, overheats or the warning light flashes.