Nigeria's road safety organisation has disciplined a senior commander after he was filmed punishing female employees by cutting off their long hair.
Photos showing the male commander taking a pair of scissors to the women's hair at an inspection parade sparked outrage online.
There are rules governing the hairstyles of female staff at the Federal Road Safety Corp (FRSC).
But a spokesman said the officer's action was "outside" the FRSC mandate.
Lauretta Onochie, an aide to Nigerian President Muhammadu Buhari, condemned the haircuts as a "humiliation of women" in a post on Twitter.
Andrew Kumapayi, regional commander for the FRSC in the southern Rivers State, reportedly carried out the punishment at an early-morning parade in the city of Port Harcourt on Monday.
He has not given any comment.
An official guide for female staff at FRSC parades says they must "maintain a hairstyle that can be tucked into their beret", but does not mention a ban on long hair.
A Facebook post containing photos of the incident has now been deleted from the organisation's official page, though the pictures have been shared thousands of times on social media.
The post said that Mr Kumapayi was carrying out a "hair, uniform and fingernails inspection" of staff.
Other officers involved in the incident had also been recalled, FRSC spokesman Bisi Kazeem told the state-run News Agency of Nigeria.
An investigation was under way and "appropriate sanctions" would be taken against those involved, he added.