discharge question

So I have a yeast infection right now and the discharge is like cottage cheese and sticks to the walls but I'm told not to wash inside the vagina because it can wash out the good bacterias. Can I wash out the discharge?