Chris Myers, Jr., an Iowa inmate, brought this 42 U.S.C. § 1983 action against two state judges and four attorneys. Myers contends the judges violated his constitutional rights by waiving juvenile court jurisdiction and sentencing him as an adult. Myers contends his four attorneys provided ineffective assistance of counsel. The district court sua sponte dismissed Myers’s complaint as frivolous because the statute of limitations for filing a section 1983 claim in Iowa had run. Myers appeals from this dismissal.
Although we decide this case on a different basis, we conclude the district court properly dismissed Myers’s complaint as frivolous under 28 U.S.C. § 1915(d). We reach this conclusion because each of Myers’s claims “lacks an arguable basis either in law or in fact.”
See Neitzke v. Williams,
Notwithstanding the basis for our decision, the district court did not commit
*751
error in dismissing Myers’s complaint as frivolous based on the expiration of the statute of limitations. Although the statute of limitations is an affirmative defense, a district court may properly dismiss an in forma pauperis complaint under 28 U.S.C. § 1915(d) when it is apparent the statute of limitations has run.
Street v. Vose,
Accordingly, we affirm.
