It was eating lots of greens and veggies and little else when my infection was escalated to the point that my bowels locked up, and I soon found what had been wrong with me. In my experience, it did not kill them, it just stirred them up. They definately don't like greens or green veggies.
I have read many accounts of people who juice greens or went raw or vegan, and 3 wks or a month into it had worms exit them. I have never heard of anyone cured by eating green alone, but it definately stirs them up.