A sheriff’s deputy in Georgia who claims he was just was letting his hair down ahead of retirement lost his job over an oversize Afro wig, according to a report.

Antonio Perryman, a former deputy for the DeKalb County Sheriff’s Office, said he was trying to have a little fun last week by donning the wig just three days ahead of finishing his 20-year career with the agency. But the stunt cost Perryman his job for allegedly “disgracing the uniform,” he told WSB-TV.

“I said, ‘Hey, you know, let me make some people happy, let me make some people’s day,’” Perryman told the station. “You know, do a little something different.”

The prank prompted bystanders to laugh and pull out their phones to take pictures as Perryman directed traffic outside the DeKalb County Courthouse, where he had been “feeling a little joyous” during his last week with the department, he said.

Hours later, though, one of Perryman’s supervisors called him to discuss the incident — and the deputy was forced to resign, he said.

“I was later informed by Chief [Melody] Maddox that her and the sheriff was totally upset over the Afro wig and told me that I disgraced the uniform,” Perryman recalled. “When she told me that, it was like, I just got numb.”

Perryman slammed that characterization by department brass as hypocritical given the charge of indecency and obstruction filed against Sheriff Jeffrey Mann in 2017 after he was caught on video running from Atlanta cops in a park.

“Like I disgraced the uniform?” Perryman, of Atlanta, continued. “And in my mind, I’m here saying that we got a sheriff running through Piedmont Park from the police like it’s an episode of ‘Cops.’”

Mann has since pleaded guilty to lesser charges, but his state law enforcement certificate was revoked. He’s still appealing that decision and is due back in court later this year, the Atlanta Journal-Constitution reported.

A message seeking comment from the DeKalb County Sheriff’s Office was not immediately returned Wednesday, but staffers declined to comment to WSB-TV, telling the station that it was a personnel matter.

Perryman, meanwhile, said he doesn’t expect to lose pay for wearing the wig, but he’s upset that his records won’t indicate that he actually retired after an otherwise spotless two decades with the department.

“My plan was to finish with the DeKalb County Sheriff’s Office with 20 years of service and I got robbed of that,” Perryman told WSB-TV.