After an examination of the case in open court and before it has been submitted to a jury, the prosecuting attorney may enter a nolle prosequi with the consent of the court. After the case has been submitted to a jury, a nolle prosequi shall not be entered except by the consent of the defendant. The prosecuting attorney shall notify the defendant and the defendant's attorney of record within 30 days of the entry of a nolle prosequi either personally or in writing; such written notice shall be sent by regular mail to the defendant at the defendant's last known address and to the defendant's attorney of record.
OCGA § 17-8-3