Cal. Penal Code § 851.7
(a) Any person who has been cited or arrested for a misdemeanor or felony, with or without a warrant, while a minor, may, during or after minority, petition the court in which the proceedings occurred or, if there were no court proceedings, the court in whose jurisdiction the citation or arrest occurred, for an order sealing the records in the case, including any records of citation, arrest, and detention, if any of the following occurred:
(e) This section does not apply to arrests for, and any further proceedings relating to, any of the following:
(g)