Antifungal medication eliminates yeast infections in most people. Creams or ointments are available for infection of the mouth, skin, or vagina. Sometimes medications must be taken by mouth for severe infections. Medications are available both over-the-counter and by prescription.