The revenge tour has come off the rails.
Donald Trump had long promised retribution against his political enemies, but - to coin a phrase used around the White House - he's f****ed around and found out that it doesn't fly so easily through the courts.
His mistake was in choosing a pilot unable to fly the plane.
Lindsey Halligan is the lawyer who took the job of Trump-enforcer when others, better qualified, turned it down.
The prosecution of Trump's adversaries would have been the job of Erik Siebert, US attorney for the Eastern District of Virginia, but he gave it a body swerve.
He had declined to prosecute the case against Letitia James, the New York attorney-general who successfully prosecuted the Trump organisation for business fraud.
Siebert concluded there were not sufficient grounds to prosecute, which didn't please the president, and Seibert quit before he was pushed.
A number of career prosecutors were similarly reluctant to take the case, leaving Trump checking availability.
That's when he turned to Lindsey Halligan, an insurance lawyer by trade.
Her work experience didn't necessarily suit the job brief - the prosecutor with the highest of profiles had no prosecutorial experience.
In pursuing the cases against Comey and James, she had to present evidence before a grand jury, something she hadn't done before.
If that wasn't ideal, that wasn't all.
Something else Halligan didn't have was the legal ability to do the job. Her appointment violated laws limiting the ability of the justice department to install top prosecutors.
It was an elementary error that didn't pass by Judge Cameron Currie, who called it a "defective appointment".
In setting aside the indictments against Comey and James, she wrote: "I conclude that all actions flowing from Ms Halligan's defective appointment… constitute unlawful exercises of executive power."
The US Department of Justice can appeal the move, so Comey and James haven't reached road's end.
Read more from Sky News:
US hails 'tremendous progress' on Ukraine peace plan
Trump changes tack on Marjorie Taylor Greene
But it's a significant boost for both, and a significant blow for Trump.
He is the president in pursuit of sworn enemies, which his critics characterise as a weaponisation of the justice system.
Those same critics will point to the haste and impropriety on display as evidence of it, and take heart from a system offering a robust resistance.
Donald Trump appears undeterred. White House spokeswoman Abigail Jackson said: "The facts of the indictments against Comey and James have not changed, and this will not be the final word on this matter."
Letitia James is charged with bank fraud and making false statements to a financial institution. James Comey was charged with making false statements and obstructing a congressional investigation.
Trump fired Comey in 2017, while he was overseeing an investigation into alleged Russian interference in the Trump 2016 campaign.
(c) Sky News 2025: Dismissal of criminal charges against opponents derails Trump's revenge tour
Budget 2025: Rachel Reeves calls for Labour MPs to unite - but admits they might not like everything
Budget 2025: Three things Rachel Reeves's speech boils down to - and two tricks the chancellor will fall back on
Boy, 16, in life-threatening condition after shooting
Russian drones strike Kyiv as Zelenskyy eyes talks with Trump over 'delicate' peace plan
Female stars may leave sport unless tech giants clamp down on online abuse, Ofcom warns
Bodycam footage of alleged sledgehammer attack on police shown at trial of Palestine Action activists
Everton player sent off after clashing with his own teammate
Nigel Farage dismisses school racism claims as 'banter in a playground'
