With ritual obedience to the LORD's command, Jericho is destroyed. But in the context of judgment, grace: Rahab and her father's household are saved. Joshua learns that God guarantees neither complete salvation of Israel (as we see in Chapter 7) nor the complete destruction of Canaan; He is not a tribal deity, and will show mercy on those whom he will show mercy-even us.
https://stjohnsrichmond.ca/wp-content/uploads/2016/03/SE2012Mar11.mp3