Joshua 10:30

The Lord gave it also with its king into the hands of Israel, and he struck it and every person who was in it with the edge of the sword. He left no survivor in it. Thus he did to its king just as he had done 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
Now Joshua captured Makkedah on that day, and struck it and its king with the edge of the sword; he utterly destroyed it and every person who was in it. He left no survivor. Thus he did to the king of Makkedah just as he had done to the king of Jericho.
Joshua 6:21
They utterly destroyed everything in the city, both man and woman, young and old, and ox and sheep and donkey, with the edge of the sword.
Joshua 8:2
You shall do to Ai and its king just as you did to Jericho and its king; you shall take only its spoil and its cattle as plunder for yourselves. Set an ambush for the city behind it.”