In any discontinued action or proceeding, the attorney for the plaintiff or petitioner shall file a stipulation or statement of discontinuance with the clerk of the court within 20 days of such discontinuance. If the action or proceeding has been noticed for judicial activity within 20 days of such discontinuance, the stipulation or statement shall be filed before the date scheduled for such activity.
N.Y. Comp. Codes R. & Regs. Tit. 22 § 207.24