Yahweh of hosts wanted to take away the current leaders. The sword should rise up against them, even if they are associated with Yahweh. The shepherd leaders should be killed, so that the flock would be scattered. Yahweh would destroy 2/3rd of this flock of people. The remaining 1/3rd would have to be refined by fire, just like gold and silver were tested in a furnace. This remaining 1/3rd remnant would be Yahweh’s people. They would have Yahweh as their God. Yahweh would have them as his people.
The man in the linen clothes told Daniel not to worry. Daniel was to go on his way. These words were secret. Thus, they would be sealed up until the end times. Many had to be purified, cleansed and refined until then. The wicked would continue to do wicked things, since they have no understanding. However, the wise ones understand what is going on. This is a kind of back handed slap at Daniel, since he claimed he did not understand what the angel had been telling him.
As indicated in 1 Maccabees, chapter 2, King Antiochus IV seduced some of the Hellenizing Judeans to abandon the covenant. However, there were many who remained loyal to their God. They stood firm and sided with the wise ones of Jerusalem. However, they also fell by the sword and the flames. They suffered captivity and plunder, but they received a little help. Some of these people were insincere. Even some of the wise ones fell, so that they could be refined, purified, and cleansed until the end times. Nevertheless, there was going to be an interval until this appointed time came.
Second Isaiah has Yahweh protect his name. Yahweh was deferring his anger. He was going to restrain himself. He was not going to cut off the Israelites for the sake of his own praise. He has refined them, not like silver in a fire, but in the furnace of life’s adversities. For his own sake, he did not want his name profaned or glory given to anyone else. Yahweh wanted his name brand protected.