This is from memory, so could be wrong.
The goal is to starve the streptococcus mutans bacteria in your mouth. Since that lives off sugar and starch, you both (a) rinse your mouth with a bactericidal (b) brush teeth, tongue, and gums after ingesting any sugar or starch.
The downside is excessive bactericidal use or brushing can damage your mouth tissues and teeth.
Another approach I had heard about but have no further info was to be vaccinated against S. mutans, so presumably your saliva would attack it somehow. I don't understand the mechanism here.
In the meantime, I use a prescription dose of fluoride toothpaste daily to harden the hydroxyapatite in my mouth.