Raymond, who was with the NYPD for 15 years, wrote a book about his experience in the NYPD.
He also wrote a 2016 article for New York Times Magazine titled "A Black Police Officer's Fight Against the N.Y.P.D."
"Edwin Raymond represents the kind of public servant New Yorkers deserve: principled, courageous and deeply committed to justice," Mayor Mamdani said.
Miranda, who was appointed sheriff in 2022, was previously probed by the Department of Investigation for his enforcement of unlicensed smoke shops and the cash seized during those operations.
Mamdani has not given a reason for firing Miranda.
This story will be updated as more information becomes available.
----------
* Get Eyewitness News Delivered
* More New York City news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Download our connected TV app