Add Grooveshark to the list of music websites that have been sued out of existence over copyright infringement.

On Thursday, Grooveshark, a free streaming site that once had 35 million users and advertising from the likes of Mercedes-Benz — but which drew the ire of major record companies for failing to receive permission for hosting music — agreed to shut down, ending a series of lawsuits stretching back four years.

In a statement posted on its site, Grooveshark said, “We started out nearly 10 years ago with the goal of helping fans share and discover music. But despite best of intentions, we made very serious mistakes. We failed to secure licenses from rights holders for the vast amount of music on the service. That was wrong. We apologize.”

Grooveshark said it had also agreed to “wipe clean all of the record companies’ copyrighted works and hand over ownership of this website, our mobile apps and intellectual property, including our patents and copyrights.”