A longtime pal of Mayor Adams who was appointed to a plum gig at the NYPD — and made nearly $300,000 last year – is retiring.