How can I get rid of mold on wood?

Replace the wood. Mold experts will typically recommend replacing wood imbued with mold, if possible.
Bleach. There are mold eradication companies that do this work, however, if you want to do it yourself, common household bleach will kill the mold in wood. Just be sure to apply it in a well ventilated environment.