Joshua 10:28

28 That same day Joshua captured Makkedah, and the Israelites killed its people and king with swords. He claimed them for the LORD by destroying them. There were no survivors. He did the same thing to the king of Makkedah that he had done to the king of Jericho.