Why did God command Israel to destroy all the Canaanites, even infants?

Watch the Teaching: Is the World's Cup of Iniquity Almost Full?