Agents of Judgment

The Lord promises to bring his people into His rest.  So, now we consider the Lord’s people going into Canaan.  They have a command to devote to destruction which is pretty extreme.  How does this show that the Lord is serious about his redemption and also his judgment?