N.Y. Navigation Law § 181-A
1. The fund shall have a lien for the costs incurred by the fund for the cleanup and removal of a discharge and for the payment of claims for direct and indirect damages as a result of a discharge upon such real property located within the state:
2. An environmental lien shall attach when:
3. An environmental lien shall continue against the real property until:
(d) the lien is otherwise vacated by court order. Upon the occurrence of any of the foregoing, except where the lien is vacated by court order, the administrator shall execute the release of an environmental lien and file the release as provided in section one hundred eighty-one-c of this part. The administrator may release an environmental lien where: