(b) If a conviction or sentence has been set aside on direct review or on collateral attack and the court determines by clear and convincing evidence that the defendant was factually innocent of the charge, the court shall enter an order expunging the record of arrest from the official records of the arresting authority and order that the records of the clerk of the circuit court and Illinois State Police be sealed until further order of the court upon good cause shown or as otherwise provided herein, and the name of the defendant obliterated from the official index requested to be kept by the circuit court clerk under Section 16 of the Clerks of Courts Act in connection with the arrest and conviction for the offense but the order shall not affect any index issued by the circuit court clerk before the entry of the order. The court shall enter the expungement order regardless of whether the defendant has prior criminal convictions. All records sealed by the Illinois State Police may be disseminated by the Department only as required by law or to the arresting authority, the State's Attorney, the court upon a later arrest for the same or similar offense, or for the purpose of sentencing for any subsequent felony. Upon conviction for any subsequent offense, the Department of Corrections shall have access to all sealed records of the Department pertaining to that individual.
Upon entry of the order of expungement, the clerk of the circuit court shall promptly mail a copy of the order to the person whose records were expunged and sealed.