N.Y. Agriculture & Markets Law § 123
2. Any person who witnesses an attack or threatened attack, or in the case of a minor, an adult acting on behalf of such minor, may, and any dog control officer or police officer as provided in subdivision one of this section shall, make a complaint under oath or affirmation to any municipal judge or justice of such attack or threatened attack. Thereupon, the judge or justice shall immediately determine if there is probable cause to believe the dog is a dangerous dog and, if so, shall issue an order to any dog control officer, peace officer, acting pursuant to his or her special duties, or police officer directing such officer to immediately seize such dog and hold the same pending judicial determination as provided in this section. Whether or not the judge or justice finds there is probable cause for such seizure, he or she shall, within five days and upon written notice of not less than two days to the owner of the dog, hold a hearing on the complaint. The petitioner shall have the burden at such hearing to prove the dog is a "dangerous dog" by clear and convincing evidence. If satisfied that the dog is a dangerous dog, the judge or justice shall then order neutering or spaying of the dog, microchipping of the dog and one or more of the following as deemed appropriate under the circumstances and as deemed necessary for the protection of the public:
3. Upon a finding that a dog is dangerous, the judge or justice may order humane euthanasia or permanent confinement of the dog if one of the following aggravating circumstances is established at the judicial hearing held pursuant to subdivision two of this section:
5.