About Joshua, this is how it went down in Jericho under his command:
And they utterly destroyed all that was in the city, both man and woman, young and old, and ox, and sheep, and ass, with the edge of the sword.
And they burnt the city with fire, and all that was therein: only the silver, and the gold, and the vessels of brass and of iron, they put into the treasury of the house of the lord.
Book of Joshua, KJV
So a fierce and murderous tribal general yes, enlightened - no.