Maryland Election Law Section 5-502
§ 5-502.
  (a)   Subject to § 5-402 of this title, an individual who has filed a certificate of candidacy may withdraw the candidacy by filing a certificate of withdrawal on the form prescribed by the State Board within 10 days after the filing date established under § 5-303 of this title.
  (b)   An individual who has filed a certificate of candidacy and a petition in accordance with § 8-502(d) of this article, or a candidate for delegate to the Democratic National Convention subject to § 5-303(a)(2) of this title, may withdraw the candidacy by filing a certificate of withdrawal on the form prescribed by the State Board within 4 days after the filing date established under § 5-303 of this title.
  (c)   An individual who has filed a certificate of candidacy for the special election to fill a vacancy for Representative in Congress may withdraw the certificate on the prescribed form within 2 days after the filing date established in the proclamation issued by the Governor.