(a) In a criminal case, when all of the charges against the defendant are disposed of by acquittal, dismissal, probation before judgment, nolle prosequi, or stet, the court shall advise the defendant that the defendant may be entitled to expunge the records and any DNA sample and DNA record relating to the charge or charges against the defendant in accordance with Title 10, Subtitle 1 of this article and Title 2, Subtitle 5 of the Public Safety Article.
(b) The failure of a court to comply with subsection (a) of this section does not affect the legality or efficacy of the sentence or disposition of the case.
Structure Maryland Statutes
Title 6 - Trial and Sentencing
Part II - Sentencing Procedures
Section 6-216 - Judicial Sentencing Guidelines
Section 6-217 - Announcement of Minimum Confinement for Violent Crime
Section 6-218 - Credit Against Sentence for Time Spent in Custody
Section 6-219 - Suspension of Sentence and Other Conditions Placed on Sentence
Section 6-220 - Probation Before Judgment
Section 6-221 - Suspension of Sentence or Probation After Judgment
Section 6-222 - Limits on Probation After Judgment; Extension for Restitution
Section 6-223 - Additional Powers of District Court
Section 6-224 - Sentencing by Other Judge
Section 6-225 - Conditions of Probation After Judgment
Section 6-226 - Fees for Probation Under Supervision of Division of Parole and Probation
Section 6-229 - Nolle Prosequi or Stet With Requirement of Drug or Alcohol Treatment
Section 6-230 - Orders Striking Entry of Judgment; When Prohibited
Section 6-231 - Considerations and Findings Prior to Revocation of Probation
Section 6-232 - Notice to Defendant Regarding Expungement of Record
Section 6-233 - Domestically Related Crimes
Section 6-234 - Transfer of Firearm Upon Conviction of a Disqualifying Crime