I think the TPS code will be stored in the memory but will not throw the cel light again.
You could also do it by disconecting the battery terminal for 5 min and reconect it again. This sould clear any codes stored in the ecu. Also i recommend the ecu learnig procedure
. I ussualy do this in june and november when the temperature are hot/cold.
To clear codes and get the ecu in learning mode run your car to normal working temperature. Stop the engine , remove battery conection for 10-15 min. Before reconectig the battery terminals be sure that all electronics and lights are off (radio , ac , lights including booth light , interior light etc)
Start the engine , let it idle utill the fan comes one twice ( during this , do not use the steering wheel , door loking , windows or touch the gas pedal). After the second time the fan comes on get in to the car and wait until the fan goes off. Stop the engine and after 10 or so seconds ( use Immob light when goes off , start it again and drive like you normaly do.
The ecu adjust the base map to the environmental temperature and loads much quiker.
This is a learn procedure for the ecu to clear codes and adjust the base map.
You could also do it by disconecting the battery terminal for 5 min and reconect them again. This sould clear