Old-Style (male-threaded spindle) Crank Replacement
This type of crank attachment is still found on some children's bikes and cheaper (lower-quality) mountain bikes. A threaded bolt sticks out of the bottom bracket. The crank fits onto a square tapered spindle, and a nut threads onto the bolt, pushing the crank firmly onto the spindle. Other crank types: standard female-threaded tapered spindle, splined spindle, tapered splined spindle.
DON'T remove the crank by pounding it or prying with a lever. You'll destroy the bearings in the bottom bracket!
Continue turning until the crank has come loose from the spindle.
If you pulled the crank to replace chainrings , go to work on that now.
To remove the chain-side crank, put the chain around the frame at the bottom bracket. Now use your hex wrench and crank extractor exactly as you did on the other side. The crank will come off with chainrings attached.
You're now ready to thread the pedal into the crankarm.