The Iowa Supreme Court has removed from the bench a magistrate who questioned the veracity of an alleged sexual assault victim because he was a teenage male and asked whether a defendant in a separate case was a “w------.”

Magistrate David J. Hanson, who is based in Fayette County and has practiced law for more than 36 years, is “simply and unalterably unsuited to be a judge,” and is “unable to preside over any proceeding involving a sexual assault,” the court ruled on Friday.

Its decision to remove Hanson from the bench takes effect in 10 days, assuming Hanson has not resigned before then.