Disconnect Battery
WARNING: This page does not describe the selected car, but rather 13 other vehicles, including the 2003 Hummer H2, 2003 GMC Yukon XL, 2003 GMC Yukon, 2003 GMC Sierra, and 2003 GMC Cab & Chassis Sierra. 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.