1385.
(a) The judge or magistrate may, either on motion of the court or upon the application of the prosecuting attorney, and in furtherance of justice, order an action to be dismissed. The reasons for the dismissal shall be stated orally on the record. The court shall also set forth the reasons in an order entered upon the minutes if requested by either party or in any case in which the proceedings are not being recorded electronically or reported by a court reporter. A dismissal shall not be made for any cause that would be ground of demurrer to the accusatory pleading.(b) (1) If the court has the authority pursuant to subdivision (a) to strike or dismiss an enhancement,
the court may instead strike the additional punishment for that enhancement in the furtherance of justice in compliance with subdivision (a).
(2) This subdivision does not authorize the court to strike the additional punishment for any enhancement that cannot be stricken or dismissed pursuant to subdivision (a).
(c) (1) Except as specified in paragraph (4), the court shall dismiss an enhancement
if it is in the furtherance of justice to do so.
(2) There shall be a presumption that it is in the furtherance of justice to dismiss an enhancement upon a finding that any of the circumstances in subparagraphs (A) to (I), inclusive, are true. This presumption shall only be overcome by a showing of clear and convincing evidence that dismissal of the enhancement would endanger public safety.
(A) Application of the enhancement would result in a disparate racial impact.
(B) Multiple enhancements are alleged in a single
case. In this instance, all enhancements beyond a single enhancement shall be dismissed.
(C) The application of an enhancement could result in a sentence of over 20 years. In this instance, the enhancement shall be dismissed.
(D) The current offense is connected to mental health issues.
(E) The current offense is connected to prior victimization or childhood trauma.
(F) The current offense is nonviolent.
(G) The defendant was a juvenile when they committed the current offense or prior offenses.
(H) The enhancement is
based on a prior conviction that is over five years old.
(I) Though a firearm was used in the current offense, it was inoperable or unloaded.
(3) The circumstances listed in paragraph (2) are not exclusive and the court maintains authority to dismiss or strike an enhancement in accordance with subdivision (a).
(4) This subdivision does not apply to an enhancement if dismissal of that enhancement is prohibited by any initiative statute.
(5) This subdivision shall not apply retroactively.