Opinion PER CURIAM.
Pеtitioners, Adrienne Wolf and Gertrude Shenk, filed a complaint in the Superior Cоurt for the District of Columbia against four defendants 1 including the Washington Metropolitan Area Transit Authority ("WMATA”). WMATA immediately removed the action to the United Statеs District Court for the District of Columbia and then answered the complaint. No рarties other than petitioners and WMATA entered an appearance in the action.
On January 21, 1988, petitioners and WMATA filed a praecipe stipulating to a voluntary dismissal without prejudice pursuant to Federal Rule of Civil Procedure 41(a)(l)(ii). 2 The district court then entered an order on Januаry 29, directing that the action be dismissed with prejudice if neither party moved tо reopen the case within thirty days. Prior to the expiration of the thirty-day period, plaintiffs petitioned this court for a writ of mandamus directing the district court to vacate its order of January 29. We granted the petition 3 and now state our reasons.
An extrаordinary writ such as a writ of prohibition or writ of mandamus is only appropriate “to confine an inferior court to a lawful exercise of its prеscribed jurisdiction or to compel it to exercise its authority when it is its duty to do so.”
Roche v. Evaporated Milk Association,
In
Gardiner v. A.H. Robins Co., Inc.,
We hold that mandamus is apрropriate in this case. It is clear that petitioners and WMATA were entitlеd to a dismissal without prejudice pursuant to Rule 41(a)(1)(h). As
Gardiner
observes, “[c]ase-law concerning stipulated dismissals under Rule 41(a)(1)(h) is clear that the entry of such a stipulation of dismissal is effective automatically and does not requirе judicial approval.”
Id.
at 1189 (citations omitted);
cf. Randall v. Merrill Lynch,
Here, the district court judge “deprived the partiеs of their unconditional right to a Rule 41(a)(1)(H) dismissal by stipulation.”
Gardiner,
Notes
. Petitioners state thаt only WMATA was properly served with the complaint. See Petitioners’ Emergency Petition for Writ of Mandamus at 2.
. Rule 41 provides in relevant part:
(a) Voluntary Dismissal: Effect Thereof.
(1) By Plaintiff; by Stipulation. Subject to the provisions of Rule 23(e), of Rule 66, and of any statute of the United States, an action may be dismissed by the plaintiff without order of court ... (ii) by filing a stipulation of dismissal signed by all parties who have appeared in the action.
.In Re: Wolf and Shenk, No. 88-7045 (D.C.Cir. Feb. 26, 1988) (order granting petition for a writ of mandamus).
