Canaan destruction

Q&A: What was going on in Canaan? If we are commanded to not kill, then why did God command the destruction of the Canaanites? What does the Bible say about it?