The Justice Department on Monday dropped a lawsuit that asserted that a former senior aide to Melania Trump violated a White House nondisclosure agreement by publishing a tell-all memoir about the former first lady.

The department’s Civil Division gave no reason for the decision to voluntarily dismiss the suit, brought in October, against Stephanie Winston Wolkoff, author of “Melania and Me: The Rise and Fall of My Friendship with the First Lady.” The lawsuit filed under the Trump administration had also sought to seize the profits of Wolkoff’s book.

A Justice Department official did not elaborate, saying, “The Department evaluated the case and concluded that dismissal without prejudice was in the best interests of the United States based on the facts and the law.”

In an emailed statement, Wolkoff’s attorney Lorin L. Reisner said, “We are very pleased that the Department of Justice is dismissing this lawsuit.”

Wolkoff, 50, had a ­15-year friendship with Melania Trump before she was ousted in 2018 as an unpaid senior adviser to the first lady in a scandal involving President Donald Trump’s $107 million inauguration. Wolkoff has said she felt “betrayed” when news accounts focused on $26 million paid to her event-planning firm by the inauguration. Most of the money went to pay for events, and she personally retained $484,126, The Washington Post has reported.

Wolkoff and Simon & Schuster subsidiary Gallery Books had both called the lawsuit a blatant attempt by Donald and Melania Trump to use the Justice Department to pursue their personal interests, silencing and intimidating a critic over speech protected by the First Amendment.

When the lawsuit was filed, the Trump administration asserted that Wolkoff entered a formal agreement that included, among other things, the handling of “nonpublic, privileged and/or confidential information.”

In the book, marketed as a “scathing tell-all” since its release Sept. 1, Wolkoff described what she viewed as mismanagement of Donald Trump’s inauguration. But the former right-hand events planner to Vogue editor Anna Wintour created a larger media storm in October by playing excerpts of phone conversations that she began secretly recording with Melania Trump in February 2018.

In the tapes, the first lady uses vulgar language to vent about her frustrations with critical media coverage, expectations about her role in planning Christmas decorations for the White House, defending the administration’s separation of migrant children at the U.S.-Mexico border, and addressing porn star Stormy Daniels. Donald Trump has denied having an affair with the adult-film actress, though Trump lawyer Michael Cohen admitted paying hush money to silence her.

Attorneys who have represented government whistleblowers and news media outlets had criticized the lawsuit, calling it an abuse of resources to punish a presidential critic. They also said the agreement between the first lady’s office and Wolkoff restricting the release of information beyond classified data is unenforceable.