Corporations Code § 5226
ARTICLE 2. Selection, Removal and Resignation of Directors
Except upon notice to the Attorney General, no director may resign where the corporation would then be left without a duly elected director or directors in charge of its affairs.