Iowa R. Crim. P. 2.33
2. 33(1) Dismissal generally; effect. The court, upon its own motion or the application of the prosecuting attorney, in the furtherance of justice, may order the dismissal of any pending criminal prosecution, the reasons therefor being stated in the order and entered of record, and no such prosecution shall be discontinued or abandoned in any other manner.
Such a dismissal is a bar to another prosecution for the same offense if it is a simple or serious misdemeanor; but
it is not a bar if the offense charged be a felony or an aggravated misdemeanor.