So when God ordered Joshua to kill every man woman and child in Canaan, that was cool?
I've already covered that. You are grasping.
Edit: I have some time so I'll list again what I've told you, then give some specifics to your question above.
In talking to Joshua, God was speaking to a theocratic nation. The church is not a theocratic nation, so we are not called to execute His judgments as Joshua/Israel was. I told you this. You don't want answers. You want to double-down on ignorance. But I'll continue in an effort to educate anyone else who may actually want more than your beloved ignorance.
God told Israel to either kill or drive out everyone that was in the promised land. Why did he do this? primarily for two reasons. Because it was time to judge those people for their idolatrous practices, which included such heinous child murdering acts as I listed previously in this thread. But, God was very gracious in how he approached this. In Genesis 15, God told Abraham this:
As the sun was going down, a deep sleep fell on Abram. And behold, dreadful and great darkness fell upon him. Then the Lord said to Abram, Know for certain that your offspring will be sojourners in a land that is not theirs and will be servants there, and they will be afflicted for four hundred years. But I will bring judgment on the nation that they serve, and afterward they shall come out with great possessions. As for you, you shall go to your fathers in peace; you shall be buried in a good old age. And they shall come back here in the fourth generation, for the iniquity of the Amorites is not yet complete. (Genesis 15:12-16, ESV)
After saying this, he sent Abraham on a sojourn across the promised land, among these people, to live out the truth of the message of Yahweh. Then Abraham's kids did the same. Then God gave these people 400 years to respond to the message that God exists and they should worship him instead of sacrificing their kids to idols.
After a 400 year passage of time, allowed for them to repent, God sent Israel in as His judgment.
Don't like it? You can take it up with him.
The second reason, besides judgment, was because if Israel did not wipe out the people, they would take on the practices. Which, they didn't follow his command, and they took on the idolatry of child sacrifice. It got so common in Israel that King Solomon built idols.
But again. That was Israel-- a theocracy. The church is not Israel. The NT is closed and we are told there will be no new revelation. Everything is to be weighed against the example and command that God gave the church. So, this is a red herring. You knew that. I told you that. But you want your ignorance so you can keep diverting with ignorant questions.