Joshua Warns and the People Promise
Joshua does not mean to say that God is not a God of forgiveness. He wants to make it clear that God cannot be served with a halfhearted heart and that leaving Him to serve other gods is a serious sin. Such a sin shall end in disaster.
Joshua addresses the people four times about their responsibility. Each time the people answers that they will serve the LORD. Joshua asks them to prove their sincerity by putting away the strange gods.