Someone serving on an HOA, neighborhood association, or other homeowner type board can send this letter of resignation.
Dear Ms. Homeboard,
I must resign from (HOA/coop board), effective (date).
I am (moving/personal situation/frustrated).
I appreciate the opportunity to have represented my fellow homeowners during my time on the board.