Director of the US Secret Service Randolph Alles speaks during a press conference at the Department of Justice in Washington, DC on October 26, 2018 following the arrest of bombing suspect Cesar Sayoc in Florida. - The suspect has been charged with five federal crimes in connection with more than a dozen suspicious packages sent in a US mail bombing spree, Sessions said. (Photo by ANDREW CABALLERO-REYNOLDS / AFP)        (Photo credit should read ANDREW CABALLERO-REYNOLDS/AFP/Getty Images)
PHOTO: ANDREW CABALLERO-REYNOLDS/AFP/Getty Images
Director of the US Secret Service Randolph Alles speaks during a press conference at the Department of Justice in Washington, DC on October 26, 2018 following the arrest of bombing suspect Cesar Sayoc in Florida. - The suspect has been charged with five federal crimes in connection with more than a dozen suspicious packages sent in a US mail bombing spree, Sessions said. (Photo by ANDREW CABALLERO-REYNOLDS / AFP) (Photo credit should read ANDREW CABALLERO-REYNOLDS/AFP/Getty Images)
Now playing
01:33
Trump removing US Secret Service director
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill. (Photo by Win McNamee/Getty Images)
Now playing
02:54
Axelrod breaks down Manchin's surprising move
sinema
PHOTO: CNN
sinema
Now playing
01:50
Senator's move has many on the internet outraged
PHOTO: FBI
Now playing
02:58
Trump State Department official charged in Capitol riot
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
Now playing
02:19
This is what Rep. Gosar was posting days before Capitol riot
John King Magic Wall 0305
PHOTO: CNN
John King Magic Wall 0305
Now playing
02:17
President Biden sending a team to the US-Mexico border
Senior Advisor to the President Jared Kushner  attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
Senior Advisor to the President Jared Kushner attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
02:50
Jared Kushner disappears from Trump's inner circle
Rep john garamendi 0305
PHOTO: CNN
Rep john garamendi 0305
Now playing
02:33
Rep. Garamendi: Any lawmaker involved in Capitol riots ought to be thrown out of Congress
Protesters gather at Lincoln Park to demand the Emancipation Memorial be taken down on June 23, 2020 in Washington, DC.
PHOTO: Tasos Katopodis/Getty Images
Protesters gather at Lincoln Park to demand the Emancipation Memorial be taken down on June 23, 2020 in Washington, DC.
Now playing
03:01
Why some people want this Abraham Lincoln statue taken down
psaki
PHOTO: CNN
psaki
Now playing
00:56
Psaki fires back at Trump testing czar over vaccine claims
PHOTO: CNN
Now playing
03:04
Avlon: Pence's op-ed is 'way worse than Stockholm syndrome'
PHOTO: CNN
Now playing
01:35
See what security looks like outside US Capitol
PHOTO: Gov. Cuomo's office
Now playing
03:35
Gov. Andrew Cuomo addresses women's allegations
Cuomo
PHOTO: Gov. Cuomo's Office
Cuomo
Now playing
00:56
Cuomo says he has no plans to resign
Now playing
04:51
Elected Republican who supports Biden's bill speaks out
President Joe Biden speaks during a meeting about cancer in the Oval Office of the White House, Wednesday, March 3, 2021, in Washington. (AP Photo/Alex Brandon)
PHOTO: Alex Brandon/AP
President Joe Biden speaks during a meeting about cancer in the Oval Office of the White House, Wednesday, March 3, 2021, in Washington. (AP Photo/Alex Brandon)
Now playing
01:20
'Neanderthal thinking': Biden on states lifting mask restrictions
(CNN) —  

United States Secret Service director Randolph “Tex” Alles is being removed from his position, multiple administration officials tell CNN.

President Donald Trump instructed his acting chief of staff, Mick Mulvaney, to fire Alles. Alles remains in his position as of now but has been asked to leave.

The USSS director was told two weeks ago there would be a transition in leadership and he was asked to stay on until there was a replacement, according to a source close to the director.

Secret Service officials have been caught by surprise with the news and are only finding out through CNN, according to the source.

In an email to employees at his agency obtained by CNN’s Jim Acosta, Alles told the workforce he was not fired, but was told weeks ago that the administration would be making “transitions in leadership” at the Department of Homeland Security.

“The President has directed an orderly transition in leadership for this agency and I intend to abide by that direction,” he wrote.

White House press secretary Sarah Sanders said later Monday that Trump has picked James M. Murray, a career USSS official, to replace Alles.

“United States Secret Service director Randolph ‘Tex’ Alles has done a great job at the agency over the last two years, and the President is thankful for his over 40 years of service to the country. Mr. Alles will be leaving shortly and President Trump has selected James M. Murray, a career member of the USSS, to take over as director beginning in May,” she said.

A source familiar with the director said his ouster was not related to the recent scrutiny the Secret Service got after a Chinese woman illegally entered the President’s Mar-a-Lago club carrying Chinese passports and a flash drive containing malware.

Just five days ago, Trump said he “could not be happier with Secret Service” following the Mar-a-Lago incident.

“Secret Service has done a fantastic job from Day 1. Very happy with them,” Trump said during a White House event when asked by reporters about the Mar-a-Lago trespasser.

The Secret Service director reports directly to the Secretary of Homeland Security, Kirstjen Nielsen, who resigned on Sunday amid growing pressure from the President. The director oversees the Secret Service’s work on both protection and investigations.

“There is a near-systematic purge happening at the nation’s second-largest national security agency,” one senior administration official says.

United States Citizenship and Immigration Services director Francis Cissna and Office of the General Counsel’s John Mitnick are expected to be gone soon, and the White House is eyeing others to be removed.

The President in recent weeks empowered Stephen Miller to lead the administration’s border policies “and he’s executing his plan” with what amounts to a wholesale decapitation or the Department of Homeland Security leadership, the official says.

Alles previously served in Customs and Border Protection leadership and also led that agency’s Air and Marine Operations. He is a 35-year veteran of the Marine Corps.

CNN’s Pamela Brown, Jim Acosta, Jeremy Diamond and Allie Malloy contributed to this report.

This story has been updated.