'Executed' in the Bible
Anyone who would not seek the Lord God of Israel would be executed, whether they were young or old, male or female.
He looked for Ahaziah, who was captured while hiding in Samaria. They brought him to Jehu and then executed him. They did give him a burial, for they reasoned, "He is the son of Jehoshaphat, who sought the Lord with his whole heart." There was no one in Ahaziah's family strong enough to rule in his place.
So Jehoshabeath, the daughter of King Jehoram, took Ahaziah's son Joash and sneaked him away from the rest of the royal descendants who were to be executed. She hid him and his nurse in the room where the bed covers were stored. So Jehoshabeath the daughter of King Jehoram, wife of Jehoiada the priest and sister of Ahaziah, hid him from Athaliah so she could not execute him.
Jehoiada the priest sent out the officers of the units of hundreds, who were in charge of the army, and ordered them, "Bring her outside the temple to the guards. Put the sword to anyone who follows her." The priest gave this order because he had decided she should not be executed in the Lord's temple.
They seized her and took her into the precincts of the royal palace through the horses' entrance. There they executed her.
When he had secured control of the kingdom, he executed the servants who had assassinated his father.
However, he did not execute their sons. He obeyed the Lord's commandment as recorded in the law scroll of Moses, "Fathers must not be executed for what their sons do, and sons must not be executed for what their fathers do. A man must be executed only for his own sin."
The people of the land executed all who had conspired against King Amon, and they made his son Josiah king in his place.