Deputy National Security Adviser Mira Ricardel, right, watches as President Donald Trump arrives for a Diwali ceremonial lighting of the Diya in the Roosevelt Room of the White House, Tuesday, Nov. 13, 2018, in Washington. In an extraordinary move, first lady Melania Trump is publicly calling for the dismissal of Ricardel. After reports circulated that the president had decided to remove Ricardel, the first lady
PHOTO: Evan Vucci/AP
Deputy National Security Adviser Mira Ricardel, right, watches as President Donald Trump arrives for a Diwali ceremonial lighting of the Diya in the Roosevelt Room of the White House, Tuesday, Nov. 13, 2018, in Washington. In an extraordinary move, first lady Melania Trump is publicly calling for the dismissal of Ricardel. After reports circulated that the president had decided to remove Ricardel, the first lady's spokeswoman issued a statement saying: "It is the position of the Office of the First Lady that she no longer deserves the honor of serving in this White House." Ricardel is national security adviser John Bolton's deputy.
Now playing
01:40
Ricardel forced out of White House
Now playing
01:10
Rand Paul slams transgender health nominee over puberty suppression
PHOTO: CNN
Now playing
02:39
Republicans push new restrictive election bills in 43 states
van jones minimum wage
van jones minimum wage
Now playing
02:44
Van Jones: This is a make or break issue for Democrats
US President Joe Biden speaks about the 50 million doses of the Covid-19 vaccine shot administered in the US during an event commemorating the milestone in the Eisenhower Executive Office Building in Washington, DC, February 25, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
PHOTO: Saul Loeb/AFP/etty Images
US President Joe Biden speaks about the 50 million doses of the Covid-19 vaccine shot administered in the US during an event commemorating the milestone in the Eisenhower Executive Office Building in Washington, DC, February 25, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
Now playing
02:28
Axelrod explains the message Biden is sending with strike
WASHINGTON, DC - FEBRUARY 13: Senate Minority Leader Mitch McConnell (R-KY) walks from his office to the Senate Chamber for the fifth day of former President Donald Trump
PHOTO: Chip Somodevilla/Getty Images
WASHINGTON, DC - FEBRUARY 13: Senate Minority Leader Mitch McConnell (R-KY) walks from his office to the Senate Chamber for the fifth day of former President Donald Trump's impeachment trial at the U.S. Capitol on February 13, 2021 in Washington, DC. House impeachment managers asked the senate Saturday for the ability to question witnesses as part of the trial. (Photo by Chip Somodevilla/Getty Images)
Now playing
02:07
McConnell says he'd support Trump as GOP nominee
The Pentagon, the headquarters of the US Department of Defense, located in Arlington County, across the Potomac River from Washington, DC is seen from the air January 24, 2017.  / AFP PHOTO / Daniel SLIM        (Photo credit should read DANIEL SLIM/AFP via Getty Images)
PHOTO: Daniel Slim/Getty Images
The Pentagon, the headquarters of the US Department of Defense, located in Arlington County, across the Potomac River from Washington, DC is seen from the air January 24, 2017. / AFP PHOTO / Daniel SLIM (Photo credit should read DANIEL SLIM/AFP via Getty Images)
Now playing
05:24
US carries out airstrikes on Iran-backed militia groups
The exterior of the U.S. Capitol building is seen at sunrise on February 8, 2021 in Washington, DC. The Senate is scheduled to begin the second impeachment trial of former U.S. President Donald J. Trump on February 9.
PHOTO: Sarah Silbiger/Getty Images
The exterior of the U.S. Capitol building is seen at sunrise on February 8, 2021 in Washington, DC. The Senate is scheduled to begin the second impeachment trial of former U.S. President Donald J. Trump on February 9.
Now playing
01:57
Senate parliamentarian rules against minimum wage increase in relief bill
Now playing
03:56
Marjorie Taylor Greene's challenger explains decision to run
PHOTO: CNN
Now playing
03:44
Acting US Capitol Police chief explains 'operational challenges' from January 6 riot
Rep. Marie Newman (D-IL) speaks with CNN
PHOTO: CNN
Rep. Marie Newman (D-IL) speaks with CNN's Alisyn Camerota.
Now playing
07:17
Lawmaker reacts to Rep. Taylor Greene's tweet on her transgender daughter
Connolly
PHOTO: CNN
Connolly
Now playing
03:51
'I will not be lectured' on bipartisanship: Lawmaker fires back at Jim Jordan
US President Donald Trump speaks to the press from the South Lawn of the White House after announcing and initial deal with China in Washington, DC, prior to departing to Lake Charles, Louisiana to hold a campaign rally on October 11, 2019.
PHOTO: NICHOLAS KAMM/AFP/Getty Images
US President Donald Trump speaks to the press from the South Lawn of the White House after announcing and initial deal with China in Washington, DC, prior to departing to Lake Charles, Louisiana to hold a campaign rally on October 11, 2019.
Now playing
02:28
Romney says he's 'pretty sure' Trump will win 2024 nomination if he runs
Now playing
02:04
Senate moderates create obstacle for Biden's nominee
This picture taken 26 December 2011 shows the Pentagon building in Washington, DC.  The Pentagon, which is the headquarters of the United States Department of Defense (DOD), is the world
PHOTO: Staff/AFP/Getty Images
This picture taken 26 December 2011 shows the Pentagon building in Washington, DC. The Pentagon, which is the headquarters of the United States Department of Defense (DOD), is the world's largest office building by floor area, with about 6,500,000 sq ft (600,000 m2), of which 3,700,000 sq ft (340,000 m2) are used as offices. Approximately 23,000 military and civilian employees and about 3,000 non-defense support personnel work in the Pentagon. (Photo credit should read STAFF/AFP via Getty Images)
Now playing
04:30
Pentagon report gives insight on White supremacists in active military
Now playing
03:57
GOP senator continues to push riot conspiracy theory
(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.

Neither Ricardel nor spokespeople for the National Security Council responded to CNN requests for comment.

Reflecting the fast-moving nature of the events, soon after a Wall Street Journal report surfaced Tuesday afternoon alleging Ricardel was fired and escorted off the White House grounds, a senior White House official denied the story to reporters.

The official said Ricardel was still in her office Tuesday afternoon.

Her departure leaves national security adviser John Bolton without one of his key allies in the White House, a deputy who has also shared his penchant for bureaucratic infighting.

It was those sharp elbows that sources said led to the first lady’s stinging statement, with Ricardel most recently feuding with members of the first lady’s staff over her trip to Africa. One person familiar with the matter said Ricardel quarreled with the first lady’s staff over seating on the plane and use of National Security Council resources.

A White House official accused Ricardel of being dishonest about the feud and subsequently leaking stories to try to cover her behavior.

And before her spat with the East Wing, Ricardel butted heads repeatedly with Defense Secretary Jim Mattis, a rivalry that was well-known within the Trump administration. Her disputes with Mattis preceded her time as deputy national security adviser, going back to the presidential transition when Ricardel sought to block Mattis from hiring certain people who had been critical of Trump or were viewed as insufficiently loyal to Trump.

Tensions had also been rising between Ricardel and chief of staff John Kelly and his deputy Zach Fuentes in recent weeks, according to people familiar with the matter. Kelly and Fuentes believe Ricardel was leaking negative stories about them to the press, the people said.

The dispute made it difficult for Ricardel to land in a top post in the Trump administration, though she was ultimately tapped for the position of undersecretary of commerce for export administration. Ricardel then joined the National Security Council as Bolton’s deputy in April after he was named national security adviser.

Ricardel has been key to Bolton’s efforts to restructure the National Security Council and to help Bolton secure his place as an influential adviser to the President on all foreign policy matters.

The drama surrounding Ricardel’s ouster surfaced while Bolton was half a world away in Singapore, where he is attending the Association of Southeast Asian Nations summit.

West Wing caught off guard

West Wing officials were caught off guard on Tuesday by the statement from the first lady’s spokeswoman targeting Ricardel, two sources familiar with the matter said.

White House officials were generally aware of the tensions between Ricardel and the first lady’s office stemming from the Africa trip, but were stunned to see the first lady take such a public stance against a senior staffer through her spokeswoman. Sources said officials in the White House press shop were particularly annoyed that they didn’t get a heads-up from the East Wing.

West Wing and NSC officials are more upset at the way the East Wing handled the matter than the substance of the effort to push Ricardel out.

One person said neither Trump, Kelly nor press secretary Sarah Sanders knew the statement was coming.

Ricardel made few friends since she came on board in April, clashing with officials across the administration. Two administration sources said she was generally not well liked, though others pushed back, saying she was a respected member of the team and one of the highest ranking women in the West Wing.

Even one NSC official who said they liked Ricardel said she “liked to pick fights with a lot of different folks” and suspected her latest feud with the first lady’s office was “the last straw.”

Another official was more forgiving: “She’d run through a brick wall for you but her personality isn’t for everyone.”

This story has been updated.

CNN’s Pamela Brown and Sarah Westwood contributed to this report.