By CBSNewYork Team

NEW YORK (CBSNewYork) — The NYPD has fired a top-ranking officials after he allegedly posted dozens of racist messages online.

Former Deputy Inspector James Kobel was the head of the department’s workplace discrimination office.

READ MORE: New York State Legislature Votes To Curb Gov. Cuomo's Emergency Powers

MORE: High-Ranking NYPD Official Retires After Being Accused Of Writing Racist Posts On Online Message Board

READ MORE: Brooklyn Mom Wants NYC Apartments Inspected Annually After Parts Of Ceiling Crash Down On 12-Year-Old Son

The 29-year veteran was suspended last month, following an internal affairs investigation. He attempted to retire to avoid termination.

However, the NYPD said Kobel’s actions were “so egregious and so contradicted the values of the department” that holding him accountable was “essential.”

MORE NEWS: Immersive Public Art Installation Now On Display At Domino Park

MORE FROM CBS NEW YORK

CBSNewYork Team