N.Y. Environmental Conservation Law § 40-0111
2. It shall be unlawful to continue operation of any tank where a continuing release to the environment is occurring. The contents of such a tank shall be promptly removed to a secure storage location. The department may prohibit deliveries of hazardous substances to any tank (i) that is leaking or (ii) where a leak appears probable. If the source of the leak or a probable leak cannot be determined, the department may prohibit deliveries to any tank or tanks that may be the probable source of a leak until such time as the source has been identified, at which time the prohibition on delivery will apply to the leaking tank or tanks. In addition, the department may prohibit deliveries of hazardous substances to any tank that is in violation of any requirement prescribed by regulation pursuant to this title related to: a. installing required equipment for spill prevention, overfill protection, leak detection, corrosion protection or secondary containment; b. performing leak detection or inspections of tank systems; c. properly operating or maintaining leak detection; or d. properly operating or maintaining spill, overfill or corrosion protection equipment.