Meaning
to suggest that there will be consequences or punishments for mistakes made by individuals.
Literal Meaning
heads will be removed from bodies.
Example
“If the project fails again, you can be sure that heads will roll in the management team.”