A British teacher has been fired for telling a class with young Jewish pupils that she would “ship them off to the gas chambers” if they didn’t finish their work, according to reports.

The unidentified teacher was punished for making the disgusting comment to a class of 28 — including 11 who are Jewish — at Newberries Primary School in Hertfordshire, according to The Sun.

She quickly insisted she was “joking” and begged her 10-year-old students not to report her, the paper said.

But enough youngsters told their parents about the anti-Semitic outburst that an emergency meeting was called for the board of governors that ended with her firing last Friday, the reports say.

“We can confirm that last week we were made aware that an alleged racist comment had been made by an agency teacher working within the school,” the school told The Sun in a statement.

“We acted on this immediately and our governors and leadership team are undertaking a full investigation. The agency teacher will not be returning.”

The school has issued a newsletter reassuring parents that they were doing all they could to “embrace diversity,” with religious leaders from different faith groups being invited to address pupils, the report said.