Rule 41. Dismissal of actions.
(a) Voluntary dismissal; effect.
(a)(1) By the plaintiff.
(a)(1)(A) Subject to Rule 23(e) and any applicable statute, the plaintiff may dismiss an action without a court order by filing:
(a)(1)(A)(i) a notice of dismissal before the opposing party serves an answer or a motion for summary judgment; or
(a)(1)(A)(ii) a stipulation of dismissal signed by all parties who have appeared.
(a)(1)(B) Unless the notice or stipulation states otherwise, the dismissal is without prejudice. But if the plaintiff previously dismissed any federal‑ or state‑court action based on or including the same claim, a notice of dismissal operates as an adjudication on the merits.
(a)(2) By court order. Except as provided in paragraph (a)(1), an action may be dismissed at the plaintiff’s request by court order only on terms the court considers proper. If a defendant has pleaded a counterclaim before being served with the plaintiff's motion to dismiss, the action may be dismissed over the defendant's objection only if the counterclaim can remain pending for independent adjudication by the court. Unless the order states otherwise, a dismissal under this paragraph is without prejudice.
(b) Involuntary dismissal; effect. If the plaintiff fails to prosecute or to comply with these rules or any court order, a defendant may move to dismiss the action or any claim against it. Unless the dismissal order otherwise states, a dismissal under this paragraph and any dismissal not under this rule, other than a dismissal for lack of jurisdiction, improper venue, or failure to join a party under Rule 19, operates as an adjudication on the merits.
(c) Dismissal of counterclaim, crossclaim, or third-party claim. This rule applies to the dismissal of any counterclaim, crossclaim, or third-party claim. A claimant’s voluntary dismissal under paragraph (a)(1) must be made before a responsive pleading is served or, if there is no responsive pleading, before evidence is introduced at a trial or hearing.
(d) Costs of previously-dismissed action. If a plaintiff who previously dismissed an action in any court files an action based on or including the same claim against the same defendant, the court may order the plaintiff to pay all or part of the costs of the previous action and may stay the proceedings until the plaintiff has complied.
(e) Bond or undertaking to be delivered to opposing party. If a party dismisses a complaint, counterclaim, crossclaim, or third-party claim, under paragraph (a)(1) after a provisional remedy has been allowed the party, the bond or undertaking filed in support of the provisional remedy must be delivered to the party against whom the provisional remedy was obtained.