Here is the JW view on the topic form the Insight on the Scriptures books:
Why
did Jehovah decree the extermination of the Canaanites?The historical account shows that the populations of the Canaanite cities conquered by the Israelites were subjected to complete destruction. (Nu 21:1-3, 34, 35; Jos 6:20, 21; 8:21-27; 10:26-40; 11:10-14) This fact has been used by some critics as a means for depicting the Hebrew Scriptures, or "Old Testament," as imbued with a spirit of cruelty and wanton slaughter. The issue involved, however, is clearly that of whether God’s sovereignty over the earth and its inhabitants is acknowledged or not. He had deeded over the right of tenure of the land of Canaan to the ‘seed of Abraham,’ doing so by an oath-bound covenant. (Ge 12:5-7; 15:17-21; compare De 32:8; Ac 17:26.) But more than a mere eviction or dispossessing of the existing tenants of that land was purposed by God. His right to act as "Judge of all the earth" (Ge 18:25) and to decree the sentence of capital punishment upon those found meriting it, as well as his right to implement and enforce the execution of such decree, was also involved.
The justness of God’s prophetic curse on Canaan found full confirmation in the conditions that had developed in Canaan by the time of the Israelite conquest. Jehovah had allowed 400 years from Abraham’s time for the ‘error of the Amorites to come to completion.’ (Ge 15:16) The fact that Esau’s Hittite wives were "a source of bitterness of spirit to Isaac and Rebekah" to the extent that Rebekah had ‘come to abhor her life because of them’ is certainly an indication of the badness already manifest among the Canaanites. (Ge 26:34, 35; 27:46) During the centuries that followed, the land of Canaan became saturated with detestable practices of idolatry, immorality, and bloodshed. The Canaanite religion was extraordinarily base and degraded, their "sacred poles" evidently being phallic symbols, and many of the rites at their "high places" involving gross sexual excesses and depravity. (Ex 23:24; 34:12, 13; Nu 33:52; De 7:5) Incest, sodomy, and bestiality were part of ‘the way of the land of Canaan’ that made the land unclean and for which error it was due to "vomit its inhabitants out." (Le 18:2-25) Magic, spellbinding, spiritism, and sacrifice of their children by fire were also among the Canaanites’ detestable practices.—De 18:9-12.
Baal was the most prominent of the deities worshiped by the Canaanites. (Jg 2:12, 13; compare Jg 6:25-32; 1Ki 16:30-32.) The Canaanite goddesses Ashtoreth (Jg 2:13; 10:6; 1Sa 7:3, 4), Asherah, and Anath are presented in an Egyptian text as both mother-goddesses and as sacred prostitutes who, paradoxically, remain ever-virgin (literally, "the great goddesses who conceive but do not bear"). Their worship apparently was invariably involved with the services of temple prostitutes. These goddesses symbolized the quality not only of sexual lust but also of sadistic violence and warfare. Thus, the goddess Anath is depicted in the Baal Epic from Ugarit as effecting a general slaughter of men and then decorating herself with suspended heads and attaching men’s hands to her girdle while she joyfully wades in their blood. The figurines of the goddess Ashtoreth that have been discovered in Palestine are of a nude woman with rudely exaggerated sex organs. Of their phallic worship, archaeologist W. F. Albright observes that: "At its worst, . . . the erotic aspect of their cult must have sunk to extremely sordid depths of social degradation."—Archaeology and the Religion of Israel, 1968, pp. 76, 77; see ASHTORETH; BAAL No. 4.
Added to their other degrading practices was that of child sacrifice. According to Merrill F. Unger: "Excavations in Palestine have uncovered piles of ashes and remains of infant skeletons in cemeteries around heathen altars, pointing to the widespread practice of this cruel abomination." (Archaeology and the Old Testament, 1964, p. 279) Halley’s Bible Handbook (1964, p. 161) says: "Canaanites worshipped, by immoral indulgence, as a religious rite, in the presence of their gods; and then, by murdering their first-born children, as a sacrifice to these same gods. It seems that, in large measure, the land of Canaan had become a sort of Sodom and Gomorrah on a national scale. . . . Did a civilization of such abominable filth and brutality have any right longer to exist? . . . Archaeologists who dig in the ruins of Canaanite cities wonder that God did not destroy them sooner than he did."—PICTURE, Vol. 1, p. 739.
Jehovah had exercised his sovereign right to execute the sentence of death upon the wicked population of the entire planet at the time of the global Flood; he had done so with regard to the entire District of the cities of Sodom and Gomorrah because of ‘the loud cry of complaint about them and their very heavy sin’ (Ge 18:20; 19:13); he had executed a decree of destruction upon Pharaoh’s military forces at the Red Sea; he had also exterminated the households of Korah and other rebels among the Israelites themselves. However, in these cases, God had employed natural forces to accomplish the destruction. By contrast, Jehovah now assigned to the Israelites the sacred duty of serving as principal executioners of his divine decree, guided by his angelic messenger and backed by God’s almighty power. (Ex 23:20-23, 27, 28; De 9:3, 4; 20:15-18; Jos 10:42) The results, nevertheless, were precisely the same to the Canaanites as if God had chosen to destroy them by some phenomenon such as a flood, fiery explosion, or earthquake, and the fact that human agents effected the putting to death of the condemned peoples, however unpleasant their task may seem, cannot alter the rightness of the divinely ordained action. (Jer 48:10) By using this human instrument, pitted against "seven nations more populous and mighty" than they were, Jehovah’s power was magnified and his Godship proved.—De 7:1; Le 25:38.
The Canaanites were not ignorant of the powerful evidence that Israel was God’s chosen people and instrument. (Jos 2:9-21, 24; 9:24-27) However, with the exception of Rahab and her family and the cities of the Gibeonites, those who came in for destruction neither sought mercy nor availed themselves of the opportunity to flee, but instead they chose to harden themselves in rebellion against Jehovah. He did not force them to bend and give in to his expressed will but, rather, "let their hearts become stubborn so as to declare war against Israel, in order that he might devote them to destruction, that they might come to have no favorable consideration, but in order that he might annihilate them" in execution of his judgment against them.—Jos 11:19, 20.
Joshua wisely "did not remove a word from all that Jehovah had commanded Moses" as to the destruction of the Canaanites. (Jos 11:15) But the Israelite nation failed to follow up his good lead and completely eliminate the source of pollution of the land. The continued presence of the Canaanites among them brought infection into Israel that, in the course of time, undoubtedly contributed toward more deaths (not to mention crime, immorality, and idolatry) than the decreed extermination of all the Canaanites would have produced had it been faithfully effected. (Nu 33:55, 56; Jg 2:1-3, 11-23; Ps 106:34-43) Jehovah had warned the Israelites that his justice and his judgments would not be partial and that for the Israelites to enter into relations with the Canaanites, intermarry with them, practice interfaith, and adopt their religious customs and degenerate practices would mean their inevitably bringing down upon themselves the same decree of annihilation and would result in their also being ‘vomited out of the land.’—Ex 23:32, 33; 34:12-17; Le 18:26-30; De 7:2-5, 25, 26.
Judges 3:1, 2 states that Jehovah let some of the Canaanite nations stay "so as by them to test Israel, that is, all those who had not experienced any of the wars of Canaan; it was only in order for the generations of the sons of Israel to have the experience, so as to teach them war, that is, only those who before that had not experienced such things." This does not contradict the earlier statement (Jg 2:20-22) that Jehovah allowed these nations to remain because of Israel’s unfaithfulness and in order to "test Israel, whether they will be keepers of Jehovah’s way." Rather, it harmonizes with that reason and shows that later generations of Israelites would thereby be faced with the opportunity to demonstrate obedience to God’s commands concerning the Canaanites, putting their faith to the test to the point of endangering their lives in war in order to prove obedient.
In view of all of this, it is clear that the opinion held by some Bible critics that the destruction of the Canaanites by Israel is not in harmony with the spirit of the Christian Greek Scriptures does not accord with the facts, as a comparison of such texts as Matthew 3:7-12; 22:1-7; 23:33; 25:41-46; Mark 12:1-9; Luke 19:14, 27; Romans 1:18-32; 2 Thessalonians 1:6-9; 2:3; and Revelation 19:11-21 will demonstrate.