Overwhelming the pumpkin with bleach isn’t good either, though.  Diluting bleach with water and then using a cloth to spread it around the inside and outside is a pretty effective way to reduce mold growth.