On Monday, President Donald Trump ended the rocky tenure of his new White House communications director Anthony Scaramucci.

After only ten days.

The New York Times reported that the new White House chief of staff, John F. Kelly, made a direct request to remove Scaramucci. The White House later confirmed the ousting in a statement with Press Secretary Sarah Huckabee Sanders saying that, “Mr. Scaramucci felt it was best to give Chief of Staff John Kelly a clean slate and the ability to build his own team.”

Scaramucci’s time at the White House is officially done. Sanders said that Scaramucci has no other role in the administration. Although it’s unclear if we’ve seen the last of Scaramucci in politics — what is clear is that Scaramucci’s spectacular bridge-burning, expletive-filled attitude is likely to blame for his abrupt departure. Here are some takeaways we can take from his days in office on how not to start a new job.

Loyalty is earned, not said

Throughout his short-lived tenure, Scaramucci asserted authority he did not fully have.

Although his original start date was not until August 15th, Scaramucci spent his days as communications director talking down to journalists and co-workers as if he was already fully working in the role. In one profanity-laced tirade to the New Yorker, he promised harm and retribution to his colleagues who crossed him. “They’ll all be fired by me. I fired one guy the other day. I have three to four people I’ll fire tomorrow,” Scaramucci said. Four days after promising to fire and “f—ing kill all the leakers,” Scaramucci himself faced his own threat.

According to reports, the expletive-filled, unprofessional New Yorker interview may have been one of the final straws for the incoming chief of staff.

White House aide says Kelly couldn't believe Scaramucci stayed in job after New Yorker interview. — Josh Dawsey (@jdawsey1) July 31, 2017

Kelly, a retired four-star Marine Corps General, just started his job as the new chief of staff on Monday, but through Scaramucci’s removal, he made it very clear who was in charge: not Scaramucci. When Reince Priebus was chief of staff, Scaramucci had made a deal to report directly to the president over Priebus. It’s clear that Kelly was not going to abide by this arrangement any longer.

No matter how much you declare your loyalty and access to the boss, know that it’s conditional upon your performance and needs to be earned.

When you say I love you too soon and he freaks out and breaks up with you pic.twitter.com/PpkSTEPkTy — Kal Penn (@kalpenn) July 31, 2017

When you’re new, you’re on probation

Remember that when you’re new, your job is not guaranteed. All parts of your jobs are being evaluated in your first few months. Publicly calling your co-worker a “paranoid schizophrenic” makes you look unhinged and unprofessional, not the other way around. Beyond his foul-mouthed feud with a reporter, Scaramucci also earned unflattering press with news of the divorce to his second wife Deidre Ball. Ball filed for divorce days after giving birth to the couple’s son, reportedly due to Scaramucci’s “naked political ambition.”

The Times reported that after a weekend of hearing about Scaramucci’s bad press, President Trump began to see Scaramucci “as a political liability and potential embarrassment.”

The big takeaway? Know when you’ve screwed up and own up to it instead of doubling down. Your superiors will be watching you very carefully.

The reign of Anthony Scaramucci, White House communications director (July 21, 2017 – July 31, 2017), has ended but his lessons live on. Scaramucci’s swift departure is an education to everyone about the perils of starting a new job. Don’t make promises you can’t keep. Don’t declare your undying loyalty too early—know that it needs to be earned. If you mess up, own up to your mistakes, and do it early. And above all, don’t get Mooch’d.