(2) When the prosecutor and the court have determined that the individual has successfully completed treatment, as outlined in the diversion plan, the prosecutor shall dismiss charges against the individual related to the offense for which diversion was initiated as an alternative to prosecution. [1977 c.871 §§18,19]