Team de Blasio is finally showing signs of retreat from its misguided policy of refusing to close schools that have clearly failed.

But the signals are pretty mixed.

The mayor came into office promising to end Mayor Mike Bloomberg’s practice of shutting down horrible schools and reopening them with new management and staff.

Instead of closing failure factories, Mayor de Blasio and Schools Chancellor Carmen Fariña vowed to plunge more money into underperforming schools — particularly the ones that made it onto their Renewal Schools list — which would have three years to turn around.

Fariña recently said that maybe some schools wouldn’t get three years, and she made good on that this week with the announcement she’d close two middle schools, Peace Academy and the Urban Assembly School for the Urban Environment, and the Foundations Academy high school — all in Brooklyn.

Better late than never — but also not enough.

After all, out of nearly 100 Renewal schools, a mere three are being closed?

In explaining the closures, the Department of Education cited three criteria: “low enrollment, performance issues and lack of demand from students and families.” Funny, measured that way, more than 80 more persistently failing schools, with 21,000 students, should be closed.

Three bad schools with 212 students are shuttered — while 21,000 kids remain stuck in equally bad schools.

A full 55 middle schools, with nearly 15,000 students, had lower state test scores for third- through eighth-graders than did Peace Academy and the Urban Assembly School.

Twenty-five schools — with more than 7,000 students — had lower college-readiness scores than the Foundations Academy.

The de Blasio administration can’t say it doesn’t have the numbers. By its own “failure criteria,” it’s made a conscious decision to keep 21,000 students stuck in failing schools.

Looks like it’s past time for some “renewal” at the Department of Education.