A panel at a British university voted unanimously this week for Prince Andrew to step down as the chancellor — days after the embattled duke defended his relationship with Jeffrey Epstein in a baffling BBC interview.

The student union panel at the University of Huddersfield approved a motion calling for Prince Andrew’s removal from his ceremonial post at the public university, The Guardian reported Tuesday.

“We as students at the University of Huddersfield and members of Huddersfield Students’ Union should not be represented by a man with ties to organized child sexual exploitation and assault,” said the motion obtained by the outlet. “We need to put survivors of sexual assault above royal connections and show students, alumni and prospective students that this institution cares about their wellbeing, irrespective of the status of the alleged perpetrator.”

Now the university — which only days ago emphatically defended the Duke of York — said it will consult with its student body about its request.

“We are aware of the students’ union meeting last night and the motion it passed regarding the chancellor,” the university said in a statement obtained by the paper. “We listen to our students’ views and concerns and we will now be consulting with them over the coming weeks.”

On Sunday evening, the university defended the prince, emphasizing his “long ties” with the institution, as well as his “enthusiasm,” which made him “a natural fit with the work of the University,” according to the report.

The 59-year-old duke has faced a wave of criticism following his “car crash” of an interview with BBC journalist Emily Maitlis — during which he denied getting sweaty with and hugging Epstein’s then-17-year-old female victim, Virginia Giuffre, before having sex with her in 2001.

That interview came in the wake of explosive claims by Giuffre that Epstein — who took his own life in his Manhattan lockup over the summer — had coerced her into having sex with Prince Andrew and other powerful men when she was underage.

She claimed in court papers that she had sex with the duke three times — in London, at Epstein’s New York home and at an “orgy” on his private island in the Caribbean.

Back in August, the prince shot down any suggestion that he participated in his pedophile pal’s behavior.