There is no statutory language regarding ineligible offenses.
The procedure is automatic. Unless the state objects and shows good cause, the court can expunge the record following an entry of nolle prosequi before the defendant is served. For the specific procedure, see Md. Code Ann., Crim. Proc. § 10-104 et seq.