Joshua and the men of Israel slaughtered them, although some managed to find safety inside their city walls and were not killed.