A beloved therapy dog in the Staten Island DA’s Office lost his job just before the holidays.

Bronksey, who comforted countless crime victims as they came through the office, got the heave-ho after his detective handler was forced out over an issue involving fudged time sheets, sources told The Post.

But DA Mike McMahon wasn’t exactly crying over the loss of the pooch, who was brought in under his rival and predecessor, Dan Donovan, a source said.

“McMahon did not like the dog because it was seen as ‘Danny’s dog,’ ” the source said.

“His blood would boil over” when he would see Bronksey in the office, the source said.

One of McMahon’s first acts after his Jan. 1, 2016, inauguration was to purge the office of Donovan’s hires, ultimately getting rid of seven of the office’s 45 assistant district attorneys.

Bronksey, who was donated to Donovan’s office by the nonprofit Canine Companions for Independence in 2012, made the cut, as did his handler, Detective Investigator Kevin Ivany.

But the pair didn’t last out 2017.

Sources said Ivany was fudging his time sheets in order to leave work early and coach a high-school football team.

One source claimed that Ivany had cut a deal with Donovan to come in early and leave early to accommodate the coaching but that McMahon refused to honor the set-up.

The time-sheet dispute allegedly led McMahon to refuse to re-sign an annual waiver allowing Ivany, a retired NYPD sergeant, to continue collecting his police pension while working for the DA in 2018, effectively forcing out the former cop.

A source insisted that McMahon wanted to keep the dog on and even went looking for a new handler.

But CCI told him the animal was too old to have another handler and would just have to be retired, the source said.

CCI did not respond to requests for comment.

McMahon’s office denied that the DA didn’t like the dog and said Bronksey simply hit retirement age.

“This is absurd and false, from politically motivated sources hiding behind anonymity,” a McMahon spokesman said of claims the DA relished in the dog’s ouster.

“Although we cannot comment on personnel matters, Bronksey was a valued member of the [DA’s] family whose contributions to victims and the community DA McMahon and this administration have praised and celebrated publicly for years now. We wish him nothing but the best in his well-deserved retirement.”

Donovan did not return a request for comment, and Ivany declined to comment.