Considering the portrayal of the conquest of Canaan in Joshua 1-11 and the covenant renewal celebration in Joshua 23-24, how does this portrayal fit the theological agenda of the Deuteronomic historian?

Consider the portrayal of the conquest of Canaan in Joshua 1-11 and the covenant renewal celebration in Joshua 23-24. How does this portrayal fit the theological agenda of the Deuteronomic historian? How does the total pacification of Palestine by violent conquest fit with this picture?