Any charge or conviction resulting from a case where a petty offense, municipal ordinance violation, or a Class 2 misdemeanor was the highest charged offense shall be automatically removed from a defendant’s public record after five years if all court-ordered conditions on the case have been satisfied and the defendant has not been convicted of any further offenses within those five years. However, the case record remains available to court personnel or as authorized by order of the court and may be used as an enhancement in the prosecution of subsequent offenses as provided by law.
SDCL 23A-3-34