I think there are two quite different stories of conquest in the book. The story of Jericho belonged to only one tradition of story telling. Another existed, and it needs to be heard.
Violence in Joshua (Part 2): Wielding the Sword
The sword clearly holds symbolic power for the narrator. It’s a symbol of God’s assured victories and the complete destruction of Canaanites.