Actually, coffee enemas are very good at triggering the liver and gall bladder to flush, which is important when you are killing worms since they release a lot of ammonia and other toxins when they die.
Dr. Nicholas Gonzalez has some pretty good explanations of why they work on Youtube.