Sec. 1. At the request of the acquitted person and after notice to the state, or at the request of the attorney for the state with the consent of the acquitted person, the trial court presiding over the case in which the person was acquitted, if the trial court is a district court, a justice court, or a municipal court of record, or a district court in the county in which the trial court is located shall enter an order of expunction for a person entitled to expunction under Article 55.01(a)(1)(A) not later than the 30th day after the date of the acquittal. On acquittal, the trial court shall advise the acquitted person of the right to expunction. The party requesting the order of expunction shall provide to the court all of the information required in a petition for expunction under Section 2(b). The attorney for the acquitted person in the case in which the person was acquitted, if the person was represented by counsel, or the attorney for the state, if the person was not represented by counsel or if the attorney for the state requested the order of expunction, shall prepare the order for the court's signature.