What are the beneficial uses of bacterial toxins in medicine?

When the bacterial toxins in the medicine are injected or released, the toxins latch onto the viruses and then disperse destroying what it was created to destroy.