At any time prior to dismissal the court may modify the conditions or extend or reduce the term of the adjournment, except that the total period of
adjournment shall not exceed twelve months. Upon violation of any
condition fixed by the court, the court may revoke its order and restore the case to the calendar and the prosecution thereupon must proceed. If the case is not so restored to the calendar during the period fixed by the court, the accusatory instrument is, at the expiration of such period, deemed to have been dismissed in the furtherance of justice.
Upon or after dismissal of such charges against a defendant not
previously convicted of a crime, the court shall order that all official
records and papers, relating to the defendant's arrest and prosecution,
whether on file with the court, a police agency, or the New York state
division of criminal justice services, be sealed and not made available to any person or public or private agency; except, such records shall be made available under order of a court.