How to Clear Permanent Codes?
Permanent codes ignore the “Erase” button and survive a battery disconnect. Here’s why, what actually clears them after a repair, and how long the drive cycle takes.
You fixed the problem. You hit "Erase Codes." The check engine light went out — and the code is still sitting there on your scanner, marked "permanent." Frustrating? Absolutely. Here's what a permanent code is, why it won't erase like the others, and how to clear permanent codes the only way that works.
Permanent Codes vs Pending and Stored Codes: What Sets Them Apart
Why does one fault show up three different ways on your scanner? Because the car's computer tracks each fault through stages.
| Code type | What it means | Check engine light | Erased by scan tool or battery disconnect? |
|---|---|---|---|
| Pending | A test failed once; the fault isn't confirmed yet | Usually off | Yes |
| Stored (confirmed) | The fault was verified | On | Yes, once the fault is fixed. |
| Permanent (PDTC) | A confirmed emissions fault the computer keeps until it proves the fault is gone | On while the fault is active | No |
| History | A record of a past or intermittent fault | Off | Yes |
Tech Note: a pending code that doesn't repeat on the next trip usually drops away on its own. A permanent code stays until the monitor that set it runs again and passes.
Why Do Some Trouble Codes Stay Permanent?
Why would a car refuse to let you erase a code? To keep emissions faults from being hidden.
- Since 2010 → permanent codes are supported on 2010 and newer vehicles, according to California's Bureau of Automotive Repair (BAR).
- Tied to emissions → they cover faults in emissions-related systems, which must work for the car to pass state emissions testing.
- Read at inspection → since July 1, 2019, California's Smog Check fails 2010 and newer vehicles with a permanent code, even when the check engine light is off (BAR).
BAR's data shows EVAP leak codes P0442 and P0456 are the most common permanent codes on gasoline cars. Our gas cap and EVAP code guide covers those.
Can Permanent OBD Codes Be Erased?
Can a scan tool or a battery disconnect wipe one out? No — only the car's own computer can.
BAR states that a code clear or battery disconnect won't remove a permanent code. The OBD system erases it by itself once the repair is made and the monitor that found the fault completes without seeing the problem again. In other words, you don't delete a permanent code — you give the computer a reason to delete it.
Common misconception: "Disconnecting the battery resets everything." It removes pending and stored codes, plus radio presets and learned settings — but the permanent code stays, and your readiness monitors go back to "not ready."
How to Clear Permanent Codes After Repair, Step by Step
So what does the process look like? Repair first, then let the computer re-test.
- Read every code. Ignition ON, engine OFF, then scan. Write down pending, stored, and permanent codes, plus freeze frame data.
- Fix the root cause. Replace the failed part, repair the wiring, or seal the leak. The permanent code can only clear once the fault is truly gone.
- Clear the stored and pending codes. The light goes off; the permanent code stays. That's normal.
- Drive a complete drive cycle. Start with a cold engine and let it warm up, drive at town speeds with some stops and idling, hold a steady highway speed for several minutes, then coast down. The exact cycle varies by vehicle — check the owner's manual or service information.
- Re-scan. Check readiness monitors and the permanent code list. When the monitor passes, the computer removes the permanent code.
How to Clear Permanent Codes on OBD2 Scanners: What Your Tool Does
If a scanner can't erase a permanent code, why do you need one? Because it shows you each stage of the process.
- Reads permanent codes → OBD2 Mode $0A lists them. Basic readers may skip it, so check before you buy.
- Clears stored and pending codes → the "Erase" command handles those only.
- Tracks readiness monitors → shows whether the monitor that set the code has run since the repair.
For DIY owners, the Autel DiagLink supports all 10 OBD2 test modes, including I/M readiness, freeze frame, O2 sensor, and EVAP tests. To confirm a repair by commanding components, the MaxiCheck MX900 adds 3,000+ bidirectional active tests — see our guide to active tests.
Product Card: diaglink
How Long and How Many Miles Until a Permanent Code Clears?
How much driving should you expect? That depends on how quickly the responsible monitor runs.
How many miles to clear a permanent code?
There's no fixed mileage. BAR reports that most vehicles finish their self-tests well before 15 warm-up cycles and 200 miles. A warm-up cycle means the coolant rises at least 40°F after start-up and reaches at least 160°F.
How long does it take to erase a permanent code?
As long as it takes the monitor to run and pass under the right driving conditions — often several drive cycles. Once it passes, the code clears without any action from you.
Important: in California, 15 warm-up cycles and 200 miles is when Smog Check stops counting a permanent code against you. It doesn't mean the code has been erased.
What to Do When a Permanent Code Won't Clear
Repaired, driven, and the code is still there? Work through these before buying more parts.
- Re-check the repair → if the fault is still present, the monitor will keep failing and the code will stay.
- Look for known issues → BAR lists vehicles that have difficulty clearing specific permanent codes in its Smog Check OBD Reference. Also ask your dealer about recalls and technical service bulletins.
- Update the ECU software → manufacturers sometimes release updates that fix monitor problems. Shops can apply them with a J2534 tool such as the MaxiCOM Ultra Lite, which includes two years of free updates.
- Get professional help → in California, eligible owners can also apply to BAR's Consumer Assistance Program for emissions repair help.
See every code — including the permanent ones.
Autel OBD2 scanners show pending, stored, and permanent codes plus readiness.
Shop Autel OBD2 scannersScanners and update cards are cheaper during promotions — see current deals.
How to Keep Permanent Codes From Coming Back
- Follow the maintenance schedule → worn parts trigger emissions faults. Our EVAP system guide covers one of the most common.
- Fix warnings early → a pending code is your early notice.
- Use quality parts → OEM or equivalent parts help the monitor pass the first time.
FAQs
Can you permanently delete car codes?
No. Fixing the fault lets the computer clear the code, but nothing stops it from setting a new code if a fault returns. Software or devices that disable emissions monitoring count as tampering, which the EPA's Clean Air Northeast program notes is illegal under the Clean Air Act.
Will a permanent code go away if the car just sits?
Generally, no. The monitor that set the code has to run and pass, and most monitors only run while the car is driven under specific conditions.
Does a permanent code mean the check engine light is on?
Not always. After a repair and code clear, the light can be off while the permanent code remains until the monitor passes.
The Bottom Line on How to Clear Permanent Codes
So, how to clear permanent codes? Fix the fault, clear the stored codes, and drive until the monitor passes — the car erases the permanent code itself. A scanner that reads Mode $0A, like the DiagLink, lets you watch it happen. Can't find the plug? See our OBD port location guide. No more guessing why the code won't go away. Just repair, drive, and re-scan.