At least fourteen days before any hearing on a motion for expungement, a copy of the motion shall be served upon the office of the prosecuting attorney who prosecuted the crime or violation, or who had authority to prosecute the charge if there was no accusatory instrument filed. The prosecuting attorney may contest the motion in writing and at the hearing on the motion.
When a defendant or arrested person makes a motion under this section, the defendant or arrested person shall pay to the clerk of courts in the county where the motion is filed a fee equal to the filing fee for a civil action. If the defendant or arrested person establishes to the court's satisfaction that the person is indigent and unable to pay the fee, the court may waive the filing fee.
SDCL 23A-3-28