A cop cleared of multiple police misconduct lawsuits finally got his gun and badge back — but says he has no intention of returning to the streets as long as Mayor Bill de Blasio and Police Commissioner James O’Neill are in charge.

David Terrell — who once faced over a dozen lawsuits alleging he was an out-of-control “monster cop” — was recently taken off modified duty. But he says being vilified as a “monster cop” has left him weary of sticking his neck out.

“I never want to go out and police for this mayor and this police commissioner,” he told The Post in an exclusive interview.

“Why would you when you know they don’t have your back? Why would I want to go out and do any police work? You’d be a fool.”

Terrell, who once patrolled tough neighborhoods in the Bronx, said city officials were aware that many of the complaints against him were bogus as soon as December 2016. But instead of returning him to the Bronx, they placed him out of the line of fire in a downtown courthouse — where he now plans to stay.

“You have the cops who actually do something and he buries them,” he said of O’Neill. “I don’t want to be on the streets. I am happy where I’m at.”

Terrell made the scathing comments the same day a fed-up judge dismissed one of the most well-known lawsuits against him — filed by Bronx teen Pedro Hernandez, who later became the poster boy for citywide bail reform.

Hernandez’s 2017 lawsuit claimed that Terrell falsely arrested him for robbery in 2016 — and then forced another teen to finger Hernandez as the culprit.

The case hit a roadblock after the city’s Law Department presented evidence that Terrell was not involved in Hernandez’s arrest.

In dismissing the suit on Thursday, Manhattan federal judge Kevin Castel cited numerous missed deadlines, including a Nov. demand that the Bronx man and his lawyer produce documents by Dec. 3.

Hernandez’s lawyer in that case, Emeka Nwokoro, handled two other police misconduct lawsuits against Terrell that also fell apart, including one by Bronx teen Shawn Nardoni, that claimed

Terrell arrested him in 2015 and made him falsely finger Hernandez for the shooting.

Nwokoro didn’t return a request for comment.

“At the end of the day, there will be one single successful lawsuit brought to remedy the injustice Pedro suffered,” Hernandez’s new lawyer, Alex Spiro, said of the year Hernandez spent in prison on charges that were later dismissed, including attempted murder in a separate case.

He declined to say whether Terrell would be named as a defendant in the new case.

Terrell’s lawyer Eric Sanders filed a $175 million notice of claim against the city, accusing it of creating a “cottage industry” for gang members looking to squeeze taxpayers with bogus complaints of police misconduct. The suit was later filed in Brooklyn federal court.