Repairing the underlying issue is usually necessary to clear permanent trouble codes. A simple OBD-II scanner is usually all that is needed to clear the codes once the repairs have been completed.