I had a Liu An (Puerh) tea which started to smell and the brew to taste moldy.
I did not want to discard it since it was still a good amount left.
So I washed the tea with ice cold water to remove any mold spores. Ice cold in order that the tea will not start a brewing.
After shaking-off the excess water I heated the tea under steady stirring in a cast iron frying pan order to remove any remaining water.
Then as a final step fully dried the tea under a hot sun.
Result, excellent. Tea as fresh and tasty as it only should be. Not a trace of mold can be detected.