Eating garlic is a natural remedy that can help to kill pinworms. Have your child eat a clove of garlic a day. If your child is a picky eater, try to mix it in with their other food. Garlic can also be added to Vaseline and rubbed around your child’s rectum.