Carol Lam, the former United States attorney for San Diego, is smart and tireless and was very good at her job. Her investigation of Representative Randy Cunningham resulted in a guilty plea for taking more than $2 million in bribes from defense contractors and a sentence of more than eight years. Two weeks ago, she indicted Kyle Dustin Foggo, the former No. 3 official in the C.I.A. The defense-contracting scandal she pursued so vigorously could yet drag in other politicians.

In many Justice Departments, her record would have won her awards, and perhaps a promotion to a top post in Washington. In the Bush Justice Department, it got her fired.

Ms. Lam is one of at least seven United States attorneys fired recently under questionable circumstances. The Justice Department is claiming that Ms. Lam and other well-regarded prosecutors like John McKay of Seattle, David Iglesias of New Mexico, Daniel Bogden of Nevada and Paul Charlton of Arizona — who all received strong job evaluations — performed inadequately.

It is hard to call what’s happening anything other than a political purge. And it’s another shameful example of how in the Bush administration, everything — from rebuilding a hurricane-ravaged city to allocating homeland security dollars to invading Iraq — is sacrificed to partisan politics and winning elections.