Disconnect Battery
WARNING: This page does not describe the selected car, but rather 11 other vehicles, including the 2002 GMC Yukon XL, 2002 GMC Yukon, 2002 GMC Sierra, 2002 GMC Cab & Chassis Sierra, and 2002 Chevrolet Tahoe. However, it is still accessible from the selected car via links, so may be relevant.
NOTE:
On many OBD-II systems, PCM will retain memory for an extended period of time with battery disconnected. Memory may be retained for several days.
Disconnecting PCM power or battery ground will clear all PCM memory including DTCs, freeze frame, failure records, adaptive learning and system monitors.