I use 91% isopropyl alcohol on a paper towel which works well. I wrap the paper towel around a block of wood to make it easier to manage.
Stubborn buildup can be removed with the abrasive eraser in Lionels track cleaning kit, or a Brite boy track cleaning block.
I'll use the abrasive eraser/block first. Then wipe with the alcohol.
There are many different methods that work well enough. That's why Google brings up many.