No, I don't recommend fasting for detoxing from these infections. I believe it leaves the body too weak to deal with the infections, unless there are other reasons for fasting.
For help with detoxing, here are two different lists (that are quite similar because the good methods are repeated) that you can look to for ideas. Then, for more information on the how to of doing a detox method, should you need it, come here and ask. I've used most of the detoxing methods myself, as have many other members here. Detoxing methods are much like treatment methods and not every way will work for everyone. You find what works for you and stick with it.
https://www.ladyoflyme.com/blog/detoxguidehttps://www.tiredoflyme.com/detox-methods.html Take it slow - don't try to add in a bunch of detoxing in a day, or even a few days. Slow and steady works best!