(CNN) Former Secretary of State Hillary Clinton has told a federal judge that she has turned over all of her work-related emails to the State Department after a judge requested she do so, a state department spokesman confirmed to CNN on Sunday.

Clinton signed a declaration obtained by CNN, which said "While I do not know what information may be 'responsive' fr purposes of this law suit, I have directed that all my e-mails on clintonemail.com in my custody that were or potentially were federal records be provided to the Department of State, and on information and belief, this has been done."

This follows U.S. District Court Judge Emmet Sullivan ordering the State Department to have Clinton as well as two former top department aides to state under penalty of perjury they have produced all government records in their possession.

While the State Department initially said Friday Clinton had not issued her certification, department spokesman Alec Gerlach said when her attorneys sent the document it initially went to officials on leave.

After conceding the presidency to Trump in a phone call earlier, Clinton addresses supporters and campaign workers in New York on Wednesday, November 9. Her defeat marked a stunning end to a campaign that appeared poised to make her the first woman elected US president.

Clinton addresses a campaign rally in Cleveland on November 6, two days before Election Day. She went on to lose Ohio -- and the election -- to her Republican opponent, Donald Trump.

Clinton addresses a campaign rally in Cleveland on November 6, two days before Election Day. She went on to lose Ohio -- and the election -- to her Republican opponent, Donald Trump.

Clinton arrives at a 9/11 commemoration ceremony in New York on September 11. Clinton, who was diagnosed with pneumonia two days before, left early after feeling ill. A video appeared to show her stumble as Secret Service agents helped her into a van.

Obama hugs Clinton after he gave a speech at the Democratic National Convention in Philadelphia. The president said Clinton was ready to be commander in chief. "For four years, I had a front-row seat to her intelligence, her judgment and her discipline," he said, referring to her stint as his secretary of state.

Obama hugs Clinton after he gave a speech at the Democratic National Convention in Philadelphia. The president said Clinton was ready to be commander in chief. "For four years, I had a front-row seat to her intelligence, her judgment and her discipline," he said, referring to her stint as his secretary of state.

After Clinton became the Democratic Party's presumptive nominee, this photo was posted to her official Twitter account. "To every little girl who dreams big: Yes, you can be anything you want -- even president," Clinton said. "Tonight is for you."

After Clinton became the Democratic Party's presumptive nominee, this photo was posted to her official Twitter account. "To every little girl who dreams big: Yes, you can be anything you want -- even president," Clinton said. "Tonight is for you."

Clinton walks on her stage with her family after winning the New York primary in April.

Clinton walks on her stage with her family after winning the New York primary in April.

Clinton is reflected in a teleprompter during a campaign rally in Alexandria, Virginia, in October 2015.

Clinton is reflected in a teleprompter during a campaign rally in Alexandria, Virginia, in October 2015.

U.S. Sen. Bernie Sanders shares a lighthearted moment with Clinton during a Democratic presidential debate in October 2015. It came after Sanders gave his take on the Clinton email scandal. "The American people are sick and tired of hearing about the damn emails," Sanders said. "Enough of the emails. Let's talk about the real issues facing the United States of America."

U.S. Sen. Bernie Sanders shares a lighthearted moment with Clinton during a Democratic presidential debate in October 2015. It came after Sanders gave his take on the Clinton email scandal. "The American people are sick and tired of hearing about the damn emails," Sanders said. "Enough of the emails. Let's talk about the real issues facing the United States of America."

Clinton testifies about the Benghazi attack during a House committee meeting in October 2015. "I would imagine I have thought more about what happened than all of you put together," she said during the 11-hour hearing. "I have lost more sleep than all of you put together. I have been wracking my brain about what more could have been done or should have been done." Months earlier, Clinton had acknowledged a "systemic breakdown" as cited by an Accountability Review Board, and she said that her department was taking additional steps to increase security at U.S. diplomatic facilities.

Clinton testifies about the Benghazi attack during a House committee meeting in October 2015. "I would imagine I have thought more about what happened than all of you put together," she said during the 11-hour hearing. "I have lost more sleep than all of you put together. I have been wracking my brain about what more could have been done or should have been done." Months earlier, Clinton had acknowledged a "systemic breakdown" as cited by an Accountability Review Board, and she said that her department was taking additional steps to increase security at U.S. diplomatic facilities.

Clinton, now running for President again, performs with Jimmy Fallon during a "Tonight Show" skit in September 2015.

Clinton, now running for President again, performs with Jimmy Fallon during a "Tonight Show" skit in September 2015.

Clinton ducks after a woman threw a shoe at her while she was delivering remarks at a recycling trade conference in Las Vegas in 2014.

Clinton ducks after a woman threw a shoe at her while she was delivering remarks at a recycling trade conference in Las Vegas in 2014.

Obama and Clinton bow during the transfer-of-remains ceremony marking the return of four Americans, including U.S. Ambassador Christopher Stevens, who were killed in Benghazi, Libya, in September 2012.

Obama and Clinton bow during the transfer-of-remains ceremony marking the return of four Americans, including U.S. Ambassador Christopher Stevens, who were killed in Benghazi, Libya, in September 2012.

Clinton arrives for a group photo before a forum with the Gulf Cooperation Council in March 2012. The forum was held in Riyadh, Saudi Arabia.

Clinton arrives for a group photo before a forum with the Gulf Cooperation Council in March 2012. The forum was held in Riyadh, Saudi Arabia.

Clinton checks her Blackberry inside a military plane after leaving Malta in October 2011. In 2015, The New York Times reported that Clinton exclusively used a personal email account during her time as secretary of state. The account, fed through its own server, raises security and preservation concerns. Clinton later said she used a private domain out of "convenience," but admits in retrospect "it would have been better" to use multiple emails.

Clinton checks her Blackberry inside a military plane after leaving Malta in October 2011. In 2015, The New York Times reported that Clinton exclusively used a personal email account during her time as secretary of state. The account, fed through its own server, raises security and preservation concerns. Clinton later said she used a private domain out of "convenience," but admits in retrospect "it would have been better" to use multiple emails.

In this photo provided by the White House, Obama, Clinton, Biden and other members of the national security team receive an update on the mission against Osama bin Laden in May 2011.

In this photo provided by the White House, Obama, Clinton, Biden and other members of the national security team receive an update on the mission against Osama bin Laden in May 2011.

The Clintons pose on the day of Chelsea's wedding to Marc Mezvinsky in July 2010.

The Clintons pose on the day of Chelsea's wedding to Marc Mezvinsky in July 2010.

Clinton, as secretary of state, greets Russian Prime Minister Vladimir Putin during a meeting just outside Moscow in March 2010.

Clinton, as secretary of state, greets Russian Prime Minister Vladimir Putin during a meeting just outside Moscow in March 2010.

Obama is flanked by Clinton and Vice President-elect Joe Biden at a news conference in Chicago in December 2008. He had designated Clinton to be his secretary of state.

Obama is flanked by Clinton and Vice President-elect Joe Biden at a news conference in Chicago in December 2008. He had designated Clinton to be his secretary of state.

Obama and Clinton talk on the plane on their way to a rally in Unity, New Hampshire, in June 2008. She had recently ended her presidential campaign and endorsed Obama.

Obama and Clinton talk on the plane on their way to a rally in Unity, New Hampshire, in June 2008. She had recently ended her presidential campaign and endorsed Obama.

Clinton and another presidential hopeful, U.S. Sen. Barack Obama, applaud at the start of a Democratic debate in 2007.

Clinton and another presidential hopeful, U.S. Sen. Barack Obama, applaud at the start of a Democratic debate in 2007.

Sen. Clinton comforts Maren Sarkarat, a woman who lost her husband in the September 11 terrorist attacks, during a ground-zero memorial in October 2001.

Sen. Clinton comforts Maren Sarkarat, a woman who lost her husband in the September 11 terrorist attacks, during a ground-zero memorial in October 2001.

Clinton announces in February 2000 that she will seek the U.S. Senate seat in New York. She was elected later that year.

Clinton announces in February 2000 that she will seek the U.S. Senate seat in New York. She was elected later that year.

President Clinton makes a statement at the White House in December 1998, thanking members of Congress who voted against his impeachment. The Senate trial ended with an acquittal in February 1999.

President Clinton makes a statement at the White House in December 1998, thanking members of Congress who voted against his impeachment. The Senate trial ended with an acquittal in February 1999.

The first family walks with their dog, Buddy, as they leave the White House for a vacation in August 1998.

The first family walks with their dog, Buddy, as they leave the White House for a vacation in August 1998.

Clinton looks on as her husband discusses the Monica Lewinsky scandal in the Roosevelt Room of the White House on January 26, 1998. Clinton declared, "I did not have sexual relations with that woman." In August of that year, Clinton testified before a grand jury and admitted to having "inappropriate intimate contact" with Lewinsky, but he said it did not constitute sexual relations because they had not had intercourse. He was impeached in December on charges of perjury and obstruction of justice.

Clinton looks on as her husband discusses the Monica Lewinsky scandal in the Roosevelt Room of the White House on January 26, 1998. Clinton declared, "I did not have sexual relations with that woman." In August of that year, Clinton testified before a grand jury and admitted to having "inappropriate intimate contact" with Lewinsky, but he said it did not constitute sexual relations because they had not had intercourse. He was impeached in December on charges of perjury and obstruction of justice.

The Clintons dance on a beach in the U.S. Virgin Islands in January 1998. Later that month, Bill Clinton was accused of having a sexual relationship with former White House intern Monica Lewinsky.

The Clintons dance on a beach in the U.S. Virgin Islands in January 1998. Later that month, Bill Clinton was accused of having a sexual relationship with former White House intern Monica Lewinsky.

The first lady holds up a Grammy Award, which she won for her audiobook "It Takes a Village" in 1997.

The first lady holds up a Grammy Award, which she won for her audiobook "It Takes a Village" in 1997.

The Clintons hug as Bill is sworn in for a second term as President.

The Clintons hug as Bill is sworn in for a second term as President.

Clinton waves to the media in January 1996 as she arrives for an appearance before a grand jury in Washington. The first lady was subpoenaed to testify as a witness in the investigation of the Whitewater land deal in Arkansas. The Clintons' business investment was investigated, but ultimately they were cleared of any wrongdoing.

Clinton waves to the media in January 1996 as she arrives for an appearance before a grand jury in Washington. The first lady was subpoenaed to testify as a witness in the investigation of the Whitewater land deal in Arkansas. The Clintons' business investment was investigated, but ultimately they were cleared of any wrongdoing.

Clinton accompanies her husband as he takes the oath of office in January 1993.

Clinton accompanies her husband as he takes the oath of office in January 1993.

During the 1992 presidential campaign, Clinton jokes with her husband's running mate, Al Gore, and Gore's wife, Tipper, aboard a campaign bus.

During the 1992 presidential campaign, Clinton jokes with her husband's running mate, Al Gore, and Gore's wife, Tipper, aboard a campaign bus.

In June 1992, Clinton uses a sewing machine designed to eliminate back and wrist strain. She had just given a speech at a convention of the International Ladies' Garment Workers Union.

In June 1992, Clinton uses a sewing machine designed to eliminate back and wrist strain. She had just given a speech at a convention of the International Ladies' Garment Workers Union.

Bill Clinton comforts his wife on the set of "60 Minutes" after a stage light broke loose from the ceiling and knocked her down in January 1992.

Bill Clinton comforts his wife on the set of "60 Minutes" after a stage light broke loose from the ceiling and knocked her down in January 1992.

The Clintons celebrate Bill's inauguration in Little Rock, Arkansas, in 1991. He was governor from 1983 to 1992, when he was elected President.

The Clintons celebrate Bill's inauguration in Little Rock, Arkansas, in 1991. He was governor from 1983 to 1992, when he was elected President.

Arkansas' first lady, now using the name Hillary Rodham Clinton, wears her inaugural ball gown in 1985.

Arkansas' first lady, now using the name Hillary Rodham Clinton, wears her inaugural ball gown in 1985.

In 1975, Rodham married Bill Clinton, whom she met at Yale Law School. He became the governor of Arkansas in 1978. In 1980, the couple had a daughter, Chelsea.

In 1975, Rodham married Bill Clinton, whom she met at Yale Law School. He became the governor of Arkansas in 1978. In 1980, the couple had a daughter, Chelsea.

Rodham was a lawyer on the House Judiciary Committee, whose work led to impeachment charges against President Richard Nixon in 1974.

Rodham was a lawyer on the House Judiciary Committee, whose work led to impeachment charges against President Richard Nixon in 1974.

Before marrying Bill Clinton, she was Hillary Rodham. Here she attends Wellesley College in Massachusetts. Her commencement speech at Wellesley's graduation ceremony in 1969 attracted national attention. After graduating, she attended Yale Law School.

Before marrying Bill Clinton, she was Hillary Rodham. Here she attends Wellesley College in Massachusetts. Her commencement speech at Wellesley's graduation ceremony in 1969 attracted national attention. After graduating, she attended Yale Law School.

Hillary Clinton accepts the Democratic Party's nomination for president at the Democratic National Convention in Philadelphia on July 28, 2016. The former first lady, U.S. senator and secretary of state was the first woman to lead the presidential ticket of a major political party.

Hillary Clinton accepts the Democratic Party's nomination for president at the Democratic National Convention in Philadelphia on July 28, 2016. The former first lady, U.S. senator and secretary of state was the first woman to lead the presidential ticket of a major political party.

This is all part of a freedom of information lawsuit filed by the conservative group Judicial Watch which is seeking records about the employment of Abedin.

Lawyers for the two top aides last week told the court they are working on turning over documents.

The attorney for Cheryl Mills, the former chief of staff for the State Department, told the court "the review process is nearing completion" and that she expected to produce additional documents on Monday. Attorney Beth Wilkinson said her client turned over provided some records in June to the department for review and that additional ones were later provided.

After pointing out that the department's March request for documents to Huma Abedin, the former State Department deputy chief of staff and close aide to Clinton, failed to get delivered three times, her attorney Karen Dunn said in her letter to the judge some documents were turned over in July and told CNN another set was delivered Friday.

"We have been working expeditiously to gather the remaining materials in Ms. Abedin's possession that are responsive or potentially responsive," Dunn and fellow attorney Miguel Rodriguez wrote.

But neither Abedin nor Mills have yet to submit the formal certification.

Meanwhile, the lawyer for Mills did tell the court she did not believe she had any paper copies of "potential federal records in her possession" and that following Monday's handover "we have instructed her to delete any and all electronic copies in her possession." Wilkinson said her firm will maintain an electronic version of the document production until it receives further instructions from the State Department.

After Judicial Watch informed the court of this development, Sullivan issued a ruling directing the government "to request that Mrs. Hillary Clinton, Ms. Huma Abedin, and Ms. Cheryl Mills i) not delete any federal documents, electronic or otherwise, in their possession or control, and ii) provide appropriate assurances to the Government that the above-named individuals will not delete any such documents." The court also asked for a status report by this coming Wednesday as well as assurances from all three that they will not delete any federal documents they have.

"We are abiding by the Court's order," Wilkinson, Mills' attorney, told CNN on Sunday.

In a release on Monday, Judicial Watch President Tom Fitton said, "The destruction of federal documents in the face of a court order is par for the course for a Clinton-related scandal".

He said that the State Department, Clinton, Mills and Abedin "should heed the court's orders to preserve government records or face severe legal consequences. "

Separately, Senate Judiciary Chairman Chuck Grassley (R-Iowa) said he is going to put a hold on more than 29 State Department nominees until he gets answers from officials there about Abedin's work status while she was at State.

Abedin was allowed to do some private sector work while continuing to work for State, including for the Clinton Foundation and for Teneo the firm of Clinton friend Doug Band. Grassley charges the arrangement presented a potential conflict of interest.

Grassley is also demanding information related to Abedin's pay, saying she was overpaid for vacation time while employed at State. Abedin is challenging the allegations of any wrongdoing on both of those fronts.

All this happens after a congressional committee found 15 cases where emails were discovered to be absent from a collection Clinton handed over to State. The missing emails were discovered in the a batch of emails Clinton confidante Sidney Blumenthal turned over, even though State had declared all emails on Benghazi had been submitted to the committee, raising questions as to whether Clinton did purge some relevant emails.