Junior dev runs set up tasks locally, deletes production db, gets fired

TLDR

Management really handled this badly.

Also from an hn comment:

Apparently he never heard the famous IBM story, and will surely live to repeat his mistakes:

After an employee made a mistake that cost the company $10 million, he walked into the office of Tom Watson, the C.E.O., expecting to get fired. “Fire you?” Mr. Watson asked. “I just spent $10 million educating you.”

Read more