These two phrases mean basically the same thing. The second intensifies the first. Alternate translation: "to completely annihilate them" (See: [[rc://en/ta/man/translate/figs-doublet]])
This refers to after they had destroyed them. Alternate translation: "When they had finished killing" (See: [[rc://en/ta/man/translate/figs-explicit]])