Ridding the boat of mold is a common topic on SBO because it is a common problem on boats.
Some claim ozone generators are the way to go, however, others point to the many problems with ozone generators and their effects on human health and the various bits and pieces on a boat.
Chlorine bleach is also cited as a solution and it does work, however, bleach can damage plastics and cloth.
Vinegar is a very temporary solution, it kills the mold and mildew, however, it leaves behind a residue that turns into mold food.
Tea Tree oil and the like make the boat smell better, but do little to kill the mold.
Practical Sailor has published several articles on the problem and with
@thinwater 's guidance developed a DIY solution that is very inexpensive and effective, commonly known as Formula B.
Since 1974, Practical Sailor’s independent testing has taken the guesswork out of boat and gear buying.
www.practical-sailor.com
I have used Formula B on my boat with positive effects. Using a garden pump sprayer I sprayed it everywhere and in every nook and cranny I could reach and it has done a good job of eradicating mold and eliminating the musty smell. On visible surfaces I do wipe it off after it dries, in the deeper recesses I just left it as it impedes future mold growth.
Finally, finding the sources of unwanted moisture is key. In my case, I had on place that was hard to eliminate mold, turned out that I had a very slow leak in a water tank that kept the area moist.