President Trump delayed the release of hundreds of classified documents related to the John F. Kennedy assassination Thursday evening, bowing to pressure from the CIA, FBI and other federal agencies.

The president approved the immediate release of 2,800 records by the National Archives, following a last-minute scramble in the face of a 25-year legal deadline. The rest will be reviewed during a 180-day period. In a memo released by the White House, Trump said: “I am ordering today that the veil finally be lifted. At the same time, executive departments and agencies have proposed to me that certain information should continue to be redacted because of national security, law enforcement, and foreign affairs concerns. I have no choice — today — but to accept those redactions rather than allow potentially irreversible harm to our nation’s security. ”

On Thursday evening, the Post was still waiting for any records to be put online. It was unknown how much new information they contain and how heavily they’ve been redacted by national security officials.

The government was facing an Oct. 26 legal deadline for disclosing the records, and Trump had tweeted twice that the documents would be made public.

“The long anticipated release of the #JFKFiles will take place tomorrow,” he promised Wednesday. “So interesting!”

Legions of assassination scholars, professionals and hobbyists alike had been waiting through the day for the scheduled release, which could only be delayed or limited by the president.

The documents could shed new light on Lee Harvey Oswald’s movements and contacts in the months before he shot Kennedy on Nov. 22, 1963. Many scholars will look for details of Oswald’s six-day trip to Mexico City, where he met with Cubans and Soviets two months before two months before the assassination.

The papers could also reveal more about the careers and activities of Watergate burglars E. Howard Hunt and James McCord, both of whom were longtime CIA operatives.

But experts do not believe the documents will contain information to shake the Warren Commission’s conclusion that Oswald, a troubled former Marine who’d temporarily defected to the Soviet Union at one point, acted as the lone gunman in Dealey Plaza. Oswald himself was killed by nightclub owner Jack Ruby on Nov. 24, 1963, at Dallas police headquarters on live television — a stunning turn that fueled decades of conspiracy theories.

The release was mandated by a 1992 act of Congress that was meant to finally empty the official cupboards of classified material that had been shrouded in controversy and hearsay for decades. The President John F. Kennedy Assassination Records Act, signed by President George H.W. Bush on Oct. 26, 1992, required that “each assassination record shall be publicly disclosed in full…no later than the date that is 25 years after the date” of its enactment. But there was an out: The president would have the right to withhold some records that, if revealed, would harm national security and outweigh “the public interest in disclosure.” The law also requires the administration to publish an unclassified explanation for the postponement in the Federal Register.

David L. Boren, the former chairman of the Senate Intelligence Committee who co-sponsored the records release law, said in a statement Thursday to the Post: “It was my intention that all documents be released in unredacted form except for in the most rare, exceptional circumstances involving current and continuing national security concerns.”

Trump had been lobbied to withhold some of the documents by CIA Director Mike Pompeo, according to Trump confidant Roger Stone. Stone, a political consultant who wrote a book alleging that Lyndon B. Johnson had Kennedy murdered, pushed Trump to release everything and hailed the president’s decision to do as a victory on Twitter.

But in an interview Wednesday, Stone said he worried that the intelligence community might still persuade his friend not to release all the papers, or that the files might be heavily redacted. He cited a previous release of classified material that left researchers disappointed.

“If the data dump that the National Archives did in July of a small amount of JFK-related material is any indication, the fallback of the intelligence agencies appears to be redact and withhold as much as this information as possible,” Stone said. “They’ll use the broad rubric of national security. If the censorship is so great to make the president’s order meaningless, it’ll get litigated in the courts.”

The National Archives has had custody of the records since the Warren Commission published its investigative findings in 1964.

In 1991, Oliver Stone released his movie, “JFK,” which suggested Kennedy was killed in a grand conspiracy involving the CIA, the FBI and the military. At the end of the film, audiences were informed that many of the investigative documents wouldn’t be released until 2029. Soon, protests erupted, and Congress passed the Kennedy Assassination Records Act that was signed into law a year later.

By the early 1990s, only a sliver of the Warren Commission’s papers — just 2­ percent — had been concealed, either partially or in full, according to the National Archives. Since then, the archives has made periodic releases of its repository, which totals more than 5 million pages. In a recent article on its website, the archives said that 88 percent of its documents are fully open; another 11 percent have been released, but with redactions; and 1 percent has been fully withheld.

In early 2016, the website GovernmentAttic.org obtained through the Freedom of Information Act the list of what was then more than 3,600 records that had been entirely withheld. Titles of the documents included “Personality File on Lee Harvey Oswald” and “Tape of Mr. William K. Harvey’s Interview, 4/10/75,” a reference to the legendary CIA officer who oversaw the agency’s plots to kill Fidel Castro.

A majority of Americans believe others besides Oswald were involved in the shooting, according to repeated Gallup polls conducted over the past 50 years. Since the Warren Commission concluded its investigation, historians and journalists have written extensively about how the CIA deliberately concealed information about Oswald’s interactions with Cubans or Soviets in Mexico City before the killing.

Philip Shenon, author of a 2013 book on the Warren Commission, interviewed one of the commission’s chief investigators, David Slawson, for Politico two years ago and showed him documents that had been declassified in the 1990s but that Slawson had never seen. Slawson’s conclusion: The CIA tampered with surveillance evidence of Oswald in Mexico City that would have revealed the agency knew of Oswald’s threat well before the assassination.

Even the CIA publicly acknowledged in 2014 that John McCone, its director at the time of the assassination, participated in a “benign cover-up,” according to a paper by agency historian David Robarge. His article said McCone was “complicit in keeping incendiary and diversionary issues off the commission’s agenda. . . .”

The agency historian wrote that McCone purposely did not tell the commission about CIA-Mafia plots to kill Castro, some of which had been planned at the Mexico City station.

“Without this information,” Shenon concluded in a 2015 Politico story, “the commission never even knew to ask the question of whether Oswald had accomplices in Cuba or elsewhere who wanted Kennedy dead in retaliation for the Castro plots.”