Joshua 10:30

And Jehovah will also give it into the hand of Israel, and her king: and he will smite it with the mouth of the sword and every soul which is in it; none was left in it escaping; and he will do to her king as he did to the king of Jericho.

Treasury of Scripture Knowledge

Summary

And the LORD delivered it also, and the king thereof, into the hand of Israel; and he smote it with the edge of the sword, and all the souls that were therein; he let none remain in it; but did unto the king thereof as he did unto the king of Jericho.

Bible References

As he did

Joshua 10:28
And Joshua took Makkedah in that day, and he will smite her with the mouth of the sword; and her king he exterminated, them, and every soul which was in her; none was left escaping: and he will do to the king of Makkedah as he did to the king of Jericho.
Joshua 6:21
And they will devote all which in the city, from man and even to woman, and from the youth even to the old man, and ox and sheep and ass, to the mouth of the sword.
Joshua 8:2
And do to Ai and to her king as thou didst to Jericho and to her king: only its plunder and her cattle ye shall plunder to yourselves: set to thee an ambush to the city from behind it.