A water and vinegar solution can be used to get rid of and kill mold in stainless steel pots and pans, but it is not advisable to use for cast iron pans as the vinegar might cause damage to the coating of the cast iron pan.