The reign of Charles County Circuit Court Judge Robert C. “Guantanamo Bob” C. Nalley is over.

The Maryland Court of Appeals has kicked him off the bench, a judiciary spokesman said Wednesday, just a little over a month after Nalley ordered a defendant in his courtroom to be electro-shocked to shut him up.

Delvon L. King, 25, was acting as his own attorney in a gun possession case — “citing case law that did not apply to his case,” Nalley later said — when the judge told a county deputy sheriff to activate the remote-controlled black box strapped to the defendant’s ankle.

“Do it. . . . Use it,” Nalley said, according to a transcript of the July 23 proceeding.

As I noted in a column about Nalley on Wednesday, the device is called a Stun-Cuff, and when the deputy pushed a button on a hand-held transmitter, 50,000 pulsating volts shot into King’s Achilles tendon for five seconds. The defendant screamed, fell to the floor and writhed in pain.

Former Washington Post reporter Ruben Castaneda, writing for the Baltimore Post Examiner, first reported the incident on Aug. 18. Maryland State Public Defender Paul DeWolfe called for Nalley to be removed from the bench.

“What the Court of Appeals did is most appropriate,” DeWolfe said Wednesday. In an interview two days earlier he told me, “For a judge to inflict physical pain for the sole purpose of silencing an individual is unacceptable. In a court of law, it is the judge’s responsibility to protect the rights of those involved in the process, not to violate them.”

The one-page Court of Appeals decision, which went into effect Friday, said the court had found “good cause” to take Nalley off the bench, but it did not mention his use of the Stun-Cuff.

Nalley, 70, has been a judge since 2002. He retired last year, but the Court of Appeals allowed him to continue hearing cases. That was a peculiar decision. In 2010, Nalley was suspended from the bench without pay for five days after deflating the tires on a car that was parked in his spot at the county courthouse in LaPlata, Md.

The car belonged to a courthouse custodian who said she parked near the entrance to keep from having to walk through the parking lot at night.

That should have ended any chance of him returning to the bench after retirement. Sadly, it had to take him turning his courtroom into a Little Guantanamo to make the Maryland Judiciary remove him for good.

Alexander King, Delvon’s father, was in the courtroom when Nalley ordered the Stun-Cuff activated.

He said he had been “shocked and horrified” when he saw what Nalley had done to his son.

“I am definitely pleased to hear that this judge is gone,” King told me Wednesday. “We are heading in the right direction towards justice.”