(CNN) A feud with the first lady's office cost a senior national security adviser her job in the White House after she sparred with East Wing staff and other key members of the Trump administration.

The dispute spilled into public view in extraordinary fashion on Tuesday when the first lady's office released a statement calling for deputy national security adviser Mira Ricardel's ouster as reports surfaced that President Donald Trump would fire the official.

"It is the position of the Office of the First Lady that (Ricardel) no longer deserves the honor of serving in this White House," the first lady's communications director Stephanie Grisham said in a statement on Tuesday.

The White House announced Wednesday that Ricardel would be leaving her role as deputy national security adviser and would take a different role in the administration.

The statement Tuesday from Melania Trump's office amounted to a stunning public rebuke by a first lady of a senior official serving in her husband's administration. It came after reports surfaced earlier Tuesday indicating Ricardel would be pushed out of her post after less than seven months on the job.

Read More