N.Y. Civil Practice Law & Rules § 327
Rule 327. Inconvenient forum. (a) When the court finds that in the interest of substantial justice the action should be heard in another forum, the court, on the motion of any party, may stay or dismiss the action in whole or in part on any conditions that may be just. The domicile or residence in this state of any party to the action shall not preclude the court from staying or dismissing the action.