NOT FOR PUBLICATION
Jamal Tarhuni appeals from the district court's order dismissing his case for lack of jurisdiction as moot.
The parties agree, as do we, that the district court erred when it dismissed Tarhuni's case for lack of jurisdiction and with prejudice, as opposed to without prejudice. See Fleck & Assocs., Inc. v. City of Phoenix, 471 F.3d 1100, 1106-07 (9th Cir. 2006) (citing Steel Co. v. Citizens for a Better Env't, 523 U.S. 83, 94 (1998)). We therefore vacate the district court's order of dismissal.
Tarhuni also argues that the district court erred when it concluded that his case is moot because it can provide "effective relief" by ordering Defendants-Appellees to remove his name from the Terrorism Screening Database (the "TSDB"). See Karuk Tribe of Cal. v. U.S. Forest Serv., 681 F.3d 1006, 1017 (9th Cir. 2012). Tarhuni is correct that this form of relief may be available to a successful plaintiff. See, e.g., Ibrahim v. Dep't of Homeland Sec., 669 F.3d 983, 993 (9th Cir. 2012); Ibrahim v. Dep't of Homeland Sec., 62 F.Supp.3d 909, 929 (N.D. Cal. 2014). However, Tarhuni did not seek this particular form of relief in his amended complaint, nor did he raise it before the district court. See Bias v. Moynihan, 508 F.3d 1212, 1219 (9th Cir. 2007) ("A district court lacks the power to act as a party's lawyer. . . .").
We therefore remand and instruct the district court to consider whether it should grant leave to amend. In deciding whether or not leave to amend is proper, the district court should give due consideration to the factors described in Foman v. Davis, 371 U.S. 178 (1962), including "undue delay, bad faith . . ., repeated failure to cure deficiencies by amendments previously allowed, undue prejudice to the opposing party . . ., [and] futility of amendment." Id. at 182.
We express no view as to whether the district court erred when it determined that the voluntary cessation exception to mootness does not apply to Tarhuni's substantive due process claim seeking a declaratory judgment.
Costs shall be taxed against Defendants-Appellees. See Fed. R. App. P. 39(a)(3).