No petition shall be dismissed without consent of the court. If there is unnecessary delay in bringing a case to trial, the court may dismiss the petition. Unless otherwise stated, a dismissal before trial shall be without prejudice. A dismissal after trial has commenced shall be with prejudice unless otherwise stated.
R.I. R. Juv. P. 49