What will it take to get Mayor Bill de Blasio to put ideology and special interests aside so that Queens can get another first-rate middle school?

The Success Academy charter network operates four of the top 10 elementary schools in the borough, but needs to open a second Queens middle school to handle all its rising students come next August.

It’s been asking the Department of Education for more than two years to assign space at one of the many school buildings in southeastern Queens that has plenty room to spare. But the DOE has stonewalled — to the point where 227 kids may be forced out.

Their parents, and Queens’ wider Success community, this month delivered a petition with 12,000 signatures demanding action. On Thursday, some 4,000 turned out for a rally against the injustice.

So far, City Hall’s only response (to a Post reporter, not to the parents or Success) is a bland “Success Academy will have a middle school in Queens.”

Sorry: These parents need a specific site named now — the DOE process for actually OKing it takes months, while the DOE deadline for applying to regular public middle schools is Dec. 2. They need to know if the new Success location is remotely practical for them — and to have some certainty that middle school will open.

“My husband and I are so worried — we will be heartbroken if our son has to leave,” Pershemia Milliard, a Far Rockaway parent, told the crowd.

De Blasio’s just given up (for now) on his drive to junk admissions standards for the city’s top high schools. It’s time for him to end his war on Success, too — and stop trying to crush the hopes of hundreds of low-income, mostly minority kids.

Do the right thing, Mr. Mayor.