A person who is required to take an oath under § 2-104 of this subtitle or to file a bond under § 2-105 of this subtitle but who fails to qualify for office by taking and subscribing the required oath or affirmation or giving the required bond within 30 days from the date his commission is received by the clerk, or if no commission is sent to the clerk, within 30 days after receiving his commission or notice of appointment, is deemed to have refused the office, and the office shall be considered vacant, unless the time is extended by the court for good cause shown.
Md. Code, CJ § 2-106