0
I kill ... I wound ... I will make mine arrows drunk with blood, and my sword shall devour flesh. Deuteronomy 32:39-42
Second Samuel is about David and his many killings -- all of which were approved of by God, with a single exception, "the matter of Uriah" (1 Kings 15:5). God took an active role in some of David's killings, and some of the killings were performed by God alone.
David killed the messenger who told him about Saul's death; he killed, mutilated, and hun up dead bodies; he killed two-thirds of the Moabite prisoners of war and enslaved the rest; he killed every male in Edom. And in one of his most disgusting killings, he killed seven of Saul's sons and hung them up before the Lord to stop the famine that God sent. (It worked, by the way.) "And the Lord gave David victory wherever he went.
Some of God's killing s were even worse than David's. He killed Uzzah for trying to keep the ark from falling; he slowly killed David and Bathsheba's baby to punish them for adultery; and he killed 70,000 people because David had a census that he (or Satan) told him to do.
Here is a list of the killings in Second Samuel.