Install this web app on your phone: tap + and then Add to Home Screen.

John Edwards sex tape to be destroyed in Rielle Hunter-Andrew Young lawsuit settlement

A settlement reached Thursday does not prevent Andrew Young from testifying against Edwards at his coming trial, however.

Former US senator John Edwards arrives at a memorial service for U.S. Sen. Edward Kennedy at the John F. Kennedy Presidential Library in August 2009 in Boston. (Chris Hondros/AFP/Getty Images)

A sex tape made by former US presidential candidate John Edwards and his mistress Rielle Hunter will be destroyed, according to The Associated Press, which says Edwards continues to face legal troubles stemming from their affair.

While his wife Elizabeth was ill with the cancer that would ultimately kill her, Edwards fathered a child out of wedlock with Hunter in 2008 and stands accused of using political donations to keep this a secret.

More from GlobalPost: John Edwards has life-threatening heart condition: reports

The agreement to destroy the tape is part of a settlement reached Thursday in a lawsuit between Hunter and Andrew Young, a former aide, and Young’s wife. Hunter accused the Youngs of stealing the tape and other personal items from a box she threw in the trash, according to the AP.

Hunter lived with the Youngs while she was pregnant with Edwards’ baby.

"We are very pleased that this settlement achieved all that she had ever hoped to achieve with this lawsuit," Allison Van Laningham, a lawyer for Hunter's lawyers, was quoted as saying.

A lawyer for Young said there was nothing to prevent Young from testifying against Edwards at trial, according to the news agency.

Edwards was indicted in June on six felony and misdemeanor counts. Prosecutors say political donors gave nearly $1 million to pay for private jets, hotels and medical bills for Hunter.

The AP says federal prosecutors have not disclosed whether they too have a copy of the tape.

More from GlobalPost: Top 10 sex scandals of 2009

According to McClatchy Newspapers, Hunter retains the right to sue the Youngs if more allegedly purloined information is made public.