N.Y. Estates, Powers & Trusts Law § 7-2.2
When the purpose for which an express trust is created ceases, the estate of the trustee also ceases.