SAN JOSE (CBS / AP) — Prosecutors in three California counties say Amazon has agreed not to sell foie gras in the state from birds that have been force-fed.

State lawmakers banned that form of the fatty duck and goose liver delicacy nearly 15 years ago.

READ MORE: US Seeks To Drop UC Davis Chinese Researcher's Visa Fraud Case Ahead Of Trial

Los Angeles County District Attorney Jackie Lacey said Friday a state judge approved a settlement between the online retailer, her office and district attorneys in Monterey and Santa Clara counties.

A spokeswoman for Amazon said the company was not commenting.

READ MORE: Suspect Wanted In January Santa Cruz County Shooting Found In Idaho

The prosecutors accused Amazon in a lawsuit of illegally selling foie gras in California on its website.

Animal rights activists say the process is painful and cruel. A U.S. appeals court upheld the law in 2017.

MORE NEWS: California Announces Change to Pay Unemployment Benefits Faster

© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.