They captured it the same day. Joshua had everyone in it killed that very day. He set it apart and completely destroyed it, just as he had done in Lachish.
But despite all this, even while they are living in land of their enemies, I will not reject or hate them so much as to destroy them and break my agreement with them, because I am the Lord their God.
They captured the town, as well as the towns nearby. Joshua had all the inhabitants killed, leaving no survivors. Just as he had done in Eglon, he set it apart and completely destroyed it and everyone in it.