Police Commissioner William Bratton on April 27, 2016 in the Bronx borough of New York City. (Photo by Spencer Platt/Getty Images)

NEW YORK — New York City Police Commissioner William Bratton is resigning his post atop the nation's largest police force.

That's according to a person briefed on the commissioner's resignation. The person was not authorized to speak publicly before a press conference announcing it and spoke to The Associated Press on condition of anonymity.

Bratton had said last month that he would not remain head of the NYPD past the end of Mayor Bill de Blasio's first term in 2017.

Bratton is in his second stint as commissioner in New York. He led the department for more than two years in the mid-1990s and began serving as de Blasio's police commissioner in January 2014.

He recently heaped praise on the commander he installed as the top chief of the NYPD, James O'Neill.

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)