The Erase codes function deletes the diagnostic trouble codes or DTCs from the vehicle’s computer memory. Deleting the trouble codes will turn off your check engine light. It may also erase Freeze Frame, O2 Sensor Data, Systems Monitors, and On-Board Monitor test results.