Israel's holy war in Canaan was for the purpose of conquering the land God had to them and for destroying and exterminating the wicked , whose sin and idolatry God hated and would destroy.