To REMOVE THE CODES? No.. remove the PCM fuses (one or two in the engine compartment) or simply remove the negative battery terminal for about 5 minutes, or so.
Remove the FUSES will remove the codes only. Removing the battery terminal will remove the codes AND your radio presets.
Make sure the key is out of the ignition when you do either.