SAN FRANCISCO (AP) — Walmart has agreed to pay $7.5 million to settle a lawsuit filed by California officials that alleged the retail giant illegally dumped batteries, aerosol cans of insect killer, toxic cleaning supplies, electronic waste, latex paints and other hazardous waste in municipal landfills throughout the state.

California Attorney General Rob Bonta announced the settlement Tuesday, saying the company will also be required to hire an independent, third-party auditor to conduct three waste audits each year at its facilities throughout California during the next four years.