N.Y. Comp. Codes R. & Regs. tit. 21, § 5006.2
(a) The membership of any person in the retirement system shall cease upon the withdrawal by a contributor of his or her accumulated contributions, or upon retirement on a pension, or at death, or when seven years have elapsed since the member has performed service as a teacher which was credited with the retirement system (at least 20 days in a school year), except that a membership shall not be cancelled under the following conditions:
(e) Notwithstanding the provisions of subdivision (a) of this section, the membership of any person who last joined the retirement system prior to July 1, 1984 shall not be cancelled if such person has at least five years of credited service as a teacher in any period of 10 consecutive years as hereinafter set forth: