How To Clear Permanent Codes: The Step-by-Step OBD-II Reset Guide

How To Clear Permanent Codes: The Step-by-Step OBD-II Reset Guide

How to Delete QR Codes in Bulk - QRTRAC Help

Clearing permanent diagnostic trouble codes (DTC) cannot be achieved by disconnecting the vehicle's battery or using a standard scan tool's "erase" function. To clear a permanent code, you must first resolve the underlying mechanical or electrical fault and then drive the vehicle through a highly specific OBD-II drive cycle to allow the engine control unit to verify the repair. Once the onboard diagnostics run and pass the relevant system monitor, the computer will automatically erase the permanent code from its non-volatile memory.


Pre-Diagnostic Requirements and Tool Checklist

Permanent diagnostic trouble codes, also known as Mode $0A codes, were introduced under federal OBD-II standards to prevent vehicle owners from temporarily clearing emission-related faults to cheat state inspection and maintenance (I/M) tests. Unlike active or pending codes, permanent codes are stored in non-volatile random-access memory (NVRAM). This memory remains intact even if you disconnect the vehicle's battery, pull the fuse to the Powertrain Control Module (PCM), or attempt a forced reset with a basic code reader.

Before attempting to clear a permanent code, you must ensure you have the proper diagnostic environment, tools, and prerequisite vehicle states. Attempting a drive cycle with a malfunctioning component or improper fuel level will result in a failed self-test, forcing you to restart the process.



Required Gear, Tools, and Prerequisites



  • OBD-II Scan Tool with Live Data: A mid-range scanner capable of reading Mode $0A (permanent codes) and displaying "I/M Readiness Monitors" in real time is essential.
  • Digital Multimeter (DMM): Required for verifying sensor voltages (such as oxygen sensor heaters or mass airflow sensors) if the code does not clear after a drive cycle.
  • Fuel Level Constraints: Ensure your vehicle’s fuel tank is strictly between 30% and 70% capacity (ideally half a tank). Many evaporative emissions (EVAP) monitors will not run if the tank is full or near empty.
  • Battery Voltage Integrity: The battery must maintain a stable resting voltage of at least 12.6 volts. Fluctuating voltage can abort an active drive cycle monitor.
  • Estimated Time Commitment: 45 to 90 minutes of dedicated driving.
  • Projected Budget: $0 (if you own a basic scan tool) to $150 (if diagnostic tools or minor replacement sensors are required).

How to Successfully Run a Complete Drive Cycle to Clear Permanent OBD-II Codes

To clear a permanent code, you must execute a sequence of driving maneuvers that simulate both stop-and-go city driving and steady-state highway cruising. This sequence is known as a Universal OBD-II Drive Cycle. It allows the PCM to run its internal diagnostics—such as the catalytic converter, evaporative emission system, oxygen sensor, heater, and EGR monitors—under precise load parameters.



Step 1: Diagnose and Repair the Underlying Hardware Issue

A permanent code remains in the computer's memory because a fault was previously detected. You cannot clear the code until the physical cause of the fault is resolved. If your permanent code is for an oxygen sensor heater circuit (e.g., P0135), you must physically inspect the wiring harness, test for ground and 12-volt power, and replace the sensor if necessary. Attempting to clear the code without completing the repair is mechanically impossible.



Step 2: Clear Active and Pending Codes with Your Scan Tool

Connect your OBD-II scan tool to the diagnostic link connector (DLC) located under the driver-side dashboard. Turn the ignition to the "ON" position without starting the engine. Select the diagnostics menu and perform a "Clear Codes" command. This action will turn off the Malfunction Indicator Light (MIL)—commonly known as the check engine light—and clear all active (Mode $03) and pending (Mode $07) codes.

Warning: Clearing active codes will reset all of your vehicle's I/M readiness monitors to "Not Ready" or "Incomplete." This is a necessary first step, as the PCM must run these monitors from a fresh state to verify that the permanent code can be safely deleted.



Step 3: Complete a Cold Start and Initial Idle Phase

The vehicle must sit turned off for at least eight hours to ensure the engine coolant temperature and intake air temperature match within 11 degrees Fahrenheit. Start the engine from this cold state. Do not touch the accelerator pedal. Turn on the rear window defroster and the air conditioning system to place a mechanical and electrical load on the engine. Let the vehicle idle in this state for two to three minutes. This phase allows the PCM to test the secondary air injection system, cold-start idle controls, and oxygen sensor heater elements.



Step 4: Execute a Steady-State Highway Drive

Drive the vehicle onto a highway or open road where you can maintain a steady speed. Accelerate smoothly up to 55 mph using half-throttle. Once at 55 mph, engage cruise control (or hold your foot incredibly steady) and maintain this exact speed for five consecutive minutes.

Pro-Tip: During this highway cruise phase, do not change lanes abruptly, do not accelerate hard, and do not brake. The PCM uses this steady-state, low-load cruise window to execute critical diagnostic calculations for the catalytic converter efficiency and the primary oxygen sensors.



Step 5: Perform a De-acceleration and Coasting Phase

Find a safe stretch of road where you can decelerate without braking. Release the accelerator pedal completely and let the vehicle coast down from 55 mph to approximately 20 mph without pressing the brake pedal or shifting gears (if driving a manual transmission, do not depress the clutch). This coasting maneuver creates a high-vacuum state within the intake manifold, allowing the PCM to test the EGR valve flow and verify the integrity of the fuel trim systems.



Step 6: Transition to Stop-and-Go City Driving

Exit the highway and enter a local driving environment. Accelerate smoothly from a complete stop to 35 mph, hold the speed for 30 seconds, and decelerate to a stop. Repeat this stop-and-go cycle four to five times. This phase tests the evaporative emissions purge valve system and ensures the PCM can transition smoothly between closed-loop and open-loop fueling modes.



Step 7: Perform a Hot Soak and Verification

Park the vehicle, turn the engine off, and let it sit undisturbed for at least ten minutes. This is known as a "hot soak" period, which is critical for EVAP diagnostic monitors that look for pressure drops as the fuel system cools down. After ten minutes, turn the key to the run position and connect your OBD-II scan tool. Check the status of the "I/M Readiness Monitors." If all monitors show "Complete" or "Ready" and the check engine light remains off, the permanent code has been successfully erased from the PCM's NVRAM.


How to Clear the Codes of a Check Engine Light

How to Clear the Codes of a Check Engine Light

OBD-II Monitor Types and Operating Conditions

Each system monitor within your vehicle's engine management computer requires distinct operating parameters to run its internal diagnostics. If you do not meet these parameters, the corresponding permanent code will remain active.



System Monitor Type Required Pre-Condition Speed and Load Parameters Target Duration to Complete
EVAP (Evaporative System) Fuel level between 30% and 70%; ambient temp 40°F to 95°F Steady cruise at 45 mph; then complete deceleration 10 to 15 minutes of varied driving
Catalyst Monitor Engine must reach full operating temperature (>180°F) Steady highway cruise at 55 mph with minimal throttle variation 5 to 8 continuous miles
Oxygen Sensor (O2) Engine operating in closed-loop fueling mode Varied city driving with multiple idle periods and light acceleration 3 to 5 minutes of mixed driving
EGR (Exhaust Gas Recirculation) Engine fully warmed up Deceleration from 50 mph to 20 mph with foot off the pedals 3 to 4 coast-down cycles
Heated Oxygen Sensor Cold engine start (coolant temp below 122°F) Stationary idle with electrical accessories turned on 3 minutes immediately following start

Common Drive Cycle Failures and Diagnostic Remedies

If you have executed a drive cycle and the permanent code remains in the memory, the PCM has aborted the monitor or detected a marginal fault. Below are the most common real-world failure scenarios and how to resolve them.



  • The EVAP Monitor Refuses to Complete or Clear



    • Root Cause: The most common culprit is incorrect ambient air temperature or an improper fuel level. The EVAP monitor is highly sensitive and will lock out its self-test if the fuel tank is full (above 85%) or low (below 15%), or if the outdoor temperature is freezing (below 32°F) or excessively hot (above 100°F).
    • Actionable Fix: Drain or fill the fuel tank so it sits exactly at the half-way mark. If you are working in extreme winter or summer climates, park the vehicle in a climate-controlled garage overnight to normalize the fuel tank temperature sensor, then perform the drive cycle immediately upon exiting the garage.
  • The Catalyst Monitor Fails to Set to "Ready" Status



    • Root Cause: The PCM requires a very stable exhaust temperature to evaluate catalyst efficiency. Minor exhaust leaks upstream of the catalytic converter or near the rear oxygen sensor will introduce raw oxygen into the exhaust stream. This distorts sensor readings and prevents the monitor from completing.
    • Actionable Fix: Perform a smoke test on the exhaust system to find pinhole leaks. Inspect the exhaust manifold gaskets and weld joints near the oxygen sensors. Repair any leaks, clear the active codes, and run the highway cruising cycle again.
  • The Permanent Code Remains Even After All Monitors Show "Ready"



    • Root Cause: Some vehicle manufacturers, such as General Motors and Ford, require a specific number of "warm-up cycles" in addition to a completed drive cycle to clear specific permanent codes. A warm-up cycle means the engine temperature must rise by at least 40 degrees Fahrenheit and reach a minimum temperature of 160 degrees Fahrenheit during a single trip.
    • Actionable Fix: Continue driving the vehicle for three to five consecutive days, ensuring the vehicle goes through a complete heat cycle (fully cold to fully hot) at least twice per day. This satisfies the secondary verification logic built into the PCM firmware.

Frequently Asked Questions



Can you clear permanent codes by disconnecting the battery?

No, disconnecting the car battery will not clear permanent OBD-II codes. Permanent codes are stored in non-volatile random-access memory (NVRAM) within the Powertrain Control Module, which does not require constant battery backup power to retain stored data.



How many miles does it take to clear a permanent code?

There is no set mileage required to clear a permanent code; instead, it depends entirely on satisfying the conditions of the specific drive cycle. While some vehicles may clear the code within 15 to 30 miles of precise driving, others may require 100 miles of mixed highway and city driving to complete the necessary self-tests.



Can a car pass an emissions inspection with a permanent code?

Yes, in many jurisdictions, including California, a vehicle can pass an emissions inspection with a permanent code present, provided that the Malfunction Indicator Light (MIL) is turned off, all other readiness monitors are "Ready," and the vehicle has been driven for at least 200 miles and through 15 warm-up cycles since the last time the active codes were cleared.



Why does my scan tool show a permanent code if the check engine light is off?

The check engine light turns off when the active and pending versions of a diagnostic code are cleared, but the permanent version remains in the computer's memory as a history log. The permanent code will only disappear once the engine control module runs its internal diagnostic monitors and confirms that the original fault has been physically repaired.

Resolve Your Diagnostic Errors with Confidence

Executing a precise drive cycle is the only verified way to satisfy your vehicle's engine control module and clear stubborn emissions codes. Equipping yourself with a professional-grade OBD-II scanner allows you to monitor sensor metrics in real time and verify that your repairs are complete before heading to the inspection station.


How to Delete QR Codes

How to Delete QR Codes

Read also: Local historians provide a tour of the Grove Street Cemetery