WASHINGTON — Anthony Scaramucci, the White House communications director whose flair for gale-force showmanship makes his new boss look almost tame, had an explosive first week on the job — so explosive that the president removed him from the role on Monday. The news of his ouster, at the hands of John F. Kelly, a new chief of staff tasked with instilling order in the West Wing, followed a particularly chaotic weekend in Mr. Scaramucci’s personal life.

On Friday, The New York Post’s Page Six column reported that Mr. Scaramucci’s wife, Deidre Ball, had filed for divorce while pregnant with the couple’s second child, a boy born last week. In an interview on Sunday, Jill Stone, who is representing Ms. Ball, confirmed the divorce filing, but said it was not caused by Mr. Scaramucci’s decision to work for Mr. Trump.

“It has nothing to do with Trump,” Ms. Stone said.

Mr. Scaramucci’s devotion to Mr. Trump is well documented, and he is thought to be the catalyst for two high-profile departures since his arrival: Sean Spicer, the former press secretary, is resigned over Mr. Scaramucci’s hire, and Reince Priebus, the White House chief of staff, was ousted days after Mr. Scaramucci called him a “paranoid schizophrenic” during an expletive-laden tirade delivered to a reporter at The New Yorker.

Ms. Stone, who may have been invoking a bit of wishful thinking when it comes to this White House, added, “Honestly, it’s a private matter, and she’s hoping that it just dies down.”