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: 49ers Win Wild Card 23-17 as Time Runs Out for Cowboys in Frantic Finish

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: 1 Killed, 2 Injured in Sonoma County Crash on Route 116

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: French Bulldog Stolen at Gunpoint During Castro Valley Armed Robbery

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