"Deworming" is the common term for using anthelmintic drugs to rid dogs of parasitic worms such as roundworms, hookworms, tapeworms, whipworms, and heartworms.
Deworming medications vary in their mechanisms of action and which parasites they eliminate. Some cause muscle spasms that paralyze the worm and allow the gastrointestinal tract to get rid of them. In this case, it's possible that some of these worms will still be alive and moving after they're out of the body. Another type of medication disrupts cell division and starves and subsequently kills the parasite.
Click HERE for the available deworming products.