cleaning out a bc

You know when you have bv or yeast infection... when the yeast and bv is coming out is that a way out it cleaning itself until its all gone ... like when it comes out is that a way of it getting rid of the bv nd yeast inside of you ? I hope this kinda make sense its hard to explain
P.s what can i do to clear this up completely