New york constitution
Article VI: judiciary
Section 23

c. No judge or justice shall be removed by virtue of this section except for cause, which shall be entered on the journals, nor unless he or she shall have been served with a statement of the cause alleged, and shall have had an opportunity to be heard. On the question of removal, the yeas and nays shall be entered on the journal.