Department of Homeland Security (DHS) Secretary Kirstjen Nielsen “was close to resigning” from President Trump’s administration after she was blasted for failing to secure the U.S.-Mexico border against a caravan of Central Americans, a report says.

According to the New York Times, Nielsen almost left the Trump administration following a series of complaints from Trump in front of the entire White House cabinet that she had not successfully secured the southern border.

The report states:

Kirstjen Nielsen, the homeland security secretary, told colleagues she was close to resigning after President Trump berated her on Wednesday in front of the entire cabinet for what he said was her failure to adequately secure the nation’s borders, according to several current and former officials familiar with the incident. [Emphasis added] Ms. Nielsen, who is a protégée of John F. Kelly, the White House chief of staff, has drafted a resignation letter but has not submitted it, according to two of the people. As the head of the Department of Homeland Security, Ms. Nielsen is in charge of the 20,000 border agents who work for Immigration and Customs Enforcement. Mr. Trump’s anger toward Ms. Nielsen at the cabinet meeting was part of a lengthy tirade in which the president railed at his entire cabinet about what he said was their lack of progress toward sealing the country’s borders against illegal immigrants, according to one person who was present at the meeting. [Emphasis added]

DHS press secretary Tyler Houlton said in an online post that the claims that Nielsen was on the verge of quitting are untrue.

The @nytimes article alleging that the Secretary drafted a resignation letter yesterday and was close to resigning is false. The Secretary is hard at work today on the President's security-focused agenda and supporting the men and women of @DHSgov. — Tyler Q. Houlton (@SpoxDHS) May 10, 2018

Nielsen’s DHS has been swamped with rising illegal immigration levels at the southern border. In the month of April, nearly 40,000 illegal aliens were caught attempting to cross into the U.S.

At the same time, DHS failed to keep a caravan of Central Americans at bay, with hundreds storming the border and seeking asylum through the ports of entry.

Most recently, in congressional testimony, Nielsen begged foreign nationals to use the ports of entry to enter the U.S. legally and seek asylum, despite DHS already being overwhelmed with border-crossers and asylum-seekers.

Nielsen formerly worked for President George W. Bush when thousands of illegal aliens were allowed to enter the U.S. after Hurricane Katrina to take coveted blue-collar jobs. Nielsen also previously authored a report promoting mass immigration as a win for big business.