That is the methodology, though. Musk's biography (I believe) contains a bit about how one of his business strategies when trying to make drastic changes is to just fire, fire, fire, fire people. And if you don't realize afterward that you fired too many, and have to hire back at least 10% of them, then you didn't fire enough in the first place.
It's a terrible, inhumane way of dealing with people.
Reports from his antics years earlier[1] at Tesla was that he would go on firing sprees, which was a problem they tried to manage because predictably it was enormously disruptive.
[1] https://www.wired.com/story/elon-musk-tesla-life-inside-giga...
Anyone who really thinks this is "efficient" need to understand that they are firing the IRS during tax season and realize how absurd that is. It's like announcing a mass layoff the week before shilling our a product. You at least wait until shipping before the layoff wave hits
This is clear from other other departments where they fired everyone they could.
"Coding error" is just a modern version of "the dog ate my homework". Lame but people will swallow it. They knew what they were doing, they just regret getting caught.
Sadly, once the firings, rehirings, refirings, court cases, and compensations are done, there won't be any money saved at all, probably more wasted.
That public servants do important work under less than ideal circumstances and funding is entirely ignored.