Cal. Health & Safety Code § 11479.2
Notwithstanding the provisions of Sections 11473, 11473.5, 11474, 11479, and 11479.1, at any time after seizure by a law enforcement agency of a suspected controlled substance, except cannabis, any amount, as determined by the court, in excess of 57 grams may, by court order, be destroyed by the chief of a law enforcement agency or a designated subordinate. Destruction shall not take place pursuant to this section until all of the following requirements are satisfied:
(f) The order for destruction shall issue pursuant to this section upon the motion and affidavit in support of the order, unless within 20 days after application for the order, a defendant has requested, in writing, a hearing on the motion. Within 10 days after the filing of that request, or a longer period of time upon good cause shown by either party, the court shall conduct a hearing on the motion in which each party to the motion for destruction shall be permitted to call and examine witnesses. The hearing shall be recorded. Upon conclusion of the hearing, if the court finds that the defendant would not be prejudiced by the destruction, it shall grant the motion and make an order for destruction. In making the order, the court shall ensure that the representative samples to be retained are of sufficient quantities to allow for qualitative analyses by both the prosecution and the defense. Any order for destruction pursuant to this section shall include the applicable information required by subdivisions (a), (b), (c), (d), and (e) and the name of the agency responsible for the destruction. Unless waived, the order shall provide for a 10-day delay prior to destruction in order to allow expert analysis of the controlled substance by the defense.
Subsequent to any destruction of a suspected controlled substance pursuant to this section, an affidavit shall be filed within 30 days in the court which ordered destruction stating the location of the retained, suspected controlled substance and specifying the date and time of destruction.
This section does not apply to seizures involving hazardous chemicals or controlled substances in mixture or combination with hazardous chemicals.