Good news for California teens with a less than stellar social media presence.

Gov. Jerry Brown signed a new law that requires websites to give teenagers the option to delete potential damaging posts, pictures and other online activity, according to the Los Angeles Times.

State Senate Leader Darrell Steinberg said the law is “groundbreaking protection for our kids who often act impetuously with postings of ill-advised pictures or messages before they think through the consequences.”

The bill was backed by non-profit organization Common Sense Media, but was opposed by the Center for Democracy & Technology. The group said that even though the law was drafted with good intentions, it could cause confusion and could keep minors from using certain sites.

“If the sites are unclear whether they are covered under the scope of the bill, the response could be to bar minors from the sites entirely,” Emma Llanso, policy counsel for the center.