You can stop milk production in dogs if indicated medically by reducing extra food which you are giving her after delivery of puppies. Use of cold compresses on breasts can also help. There are some medicines which can be used to stop milk production in dogs. These are prolactin inhibitors. So, you should get advice about use of this medicine from your vet.
Well if she had pups and something happened to them,she will eventually stop producing milk on her own.
Get the dog neutered or spade. neutered for males spade for females
When all the puppies are no longer nursing, the milk will dry up. As long as there is nursing at all she will continue to produce milk