The Supreme Court of Pennsylvania on Thursday ordered the slate cleaned for hundreds of youths who had been sentenced by a corrupt judge.

The young people had been sent to privately run detention centers from 2003 to 2008 as part of a judicial kickback scheme that shocked Pennsylvania and the nation. The judge in the cases, Mark A. Ciavarella Jr. of Luzerne County, is one of two who pleaded guilty last month to wire fraud and conspiracy for taking more than $2.6 million in kickbacks.

The exact number of records to be expunged was not stated in the court’s order; a special master is investigating the cases.

Judge Ciavarella and the other judge, Michael T. Conahan, admitted that they had agreed to send teenagers to two privately run youth detention centers that paid them for the business. Under their agreements, the judges will serve 87 months in federal prison and will resign from the bench and from the bar.