To kill roundworms, your veterinarian will prescribe a dewormer medication given to your dog multiple times to kill the worms and their larvae. Medications only kill adult roundworms, so it's important to follow your veterinarian's instructions closely for repeated treatments.