(a) Defense counsel shall provide accurate and affirmative advice about the immigration consequences of a proposed disposition, and when consistent with the goals of and with the informed consent of the defendant, and consistent with professional standards, defend against those consequences.
(b) The prosecution, in the interests of justice, and in furtherance of the findings and declarations of Section 1016.2, shall consider the avoidance of adverse immigration consequences in the plea negotiation process as one factor in an effort to reach a just resolution.
(c) This code section shall not be interpreted to change the requirements of Section 1016.5, including the requirement that no defendant shall be required to disclose his or her immigration status to the court.
§ 1016.5. (Operative term contingent) Required advisement to alien before acceptance of guilty or nolo contendere plea
(a) Prior to acceptance of a plea of guilty or nolo contendere to any offense punishable as a crime under state law, except offenses designated as infractions under state law, the court shall administer the following advisement on the record to the defendant:
If you are not a citizen, you are hereby advised that conviction of the offense for which you have been charged may have the consequences of deportation, exclusion from admission to the United States, or denial of naturalization pursuant to the laws of the United States.
(b) Upon request, the court shall allow the defendant additional time to consider the appropriateness of the plea in light of the advisement as described in this section. If, after January 1, 1978, the court fails to advise the defendant as required by this section and the defendant shows that conviction of the offense to which defendant pleaded guilty or nolo contendere may have the consequences for the defendant of deportation, exclusion from admission to the United States, or denial of naturalization pursuant to the laws of the United States, the court, on defendant’s motion, shall vacate the judgment and permit the defendant to withdraw the plea of guilty or nolo contendere, and enter a plea of not guilty. Absent a record that the court provided the advisement required by this section, the defendant shall be presumed not to have received the required advisement.
(c) With respect to pleas accepted prior to January 1, 1978, it is not the intent of the Legislature that a court’s failure to provide the advisement required by subdivision (a) of Section 1016.5 should require the vacation of judgment and withdrawal of the plea or constitute grounds for finding a prior conviction invalid. Nothing in this section, however, shall be deemed to inhibit a court, in the sound exercise of its discretion, from vacating a judgment and permitting a defendant to withdraw a plea.
(d) The Legislature finds and declares that in many instances involving an individual who is not a citizen of the United States charged with an offense punishable as a crime under state law, a plea of guilty or nolo contendere is entered without the defendant knowing that a conviction of such offense is grounds for deportation, exclusion from admission to the United States, or denial of naturalization pursuant to the laws of the United States. Therefore, it is the intent of the Legislature in enacting this section to promote fairness to such accused individuals by requiring in such cases that acceptance of a guilty plea or plea of nolo contendere be preceded by an appropriate warning of the special consequences for such a defendant which may result from the plea. It is also the intent of the Legislature that the court in such cases shall grant the defendant a reasonable amount of time to negotiate with the prosecuting agency in the event the defendant or the defendant’s counsel was unaware of the possibility of deportation, exclusion from admission to the United States, or denial of naturalization as a result of conviction. It is further the intent of the Legislature that at the time of the plea no defendant shall be required to disclose his or her legal status to the court.
§ 1170.18. Recall of sentence where felony amended to be misdemeanor; Resentencing; Credit for time served
(a) A person who, on November 5, 2014, was serving a sentence for a conviction, whether by trial or plea, of a felony or felonies who would have been guilty of a misdemeanor under the act that added this section (“this act”) had this act been in effect at the time of the offense may petition for a recall of sentence before the trial court that entered the judgment of conviction in his or her case to request resentencing in accordance with Sections 11350, 11357, or 11377 of the Health and Safety Code, or Section 459.5, 473, 476a, 490.2, 496, or 666 of the Penal Code, as those sections have been amended or added by this act.
(b) Upon receiving a petition under subdivision (a), the court shall determine whether the petitioner satisfies the criteria in subdivision (a). If the petitioner satisfies the criteria in subdivision (a), the petitioner’s felony sentence shall be recalled and the petitioner resentenced to a misdemeanor pursuant to Sections 11350, 11357, or 11377 of the Health and Safety Code, or Section 459.5, 473, 476a, 490.2, 496, or 666 of the Penal Code, as those sections have been amended or added by this act, unless the court, in its discretion, determines that resentencing the petitioner would pose an unreasonable risk of danger to public safety. In exercising its discretion, the court may consider all of the following:
(1) The petitioner’s criminal conviction history, including the type of crimes committed, the extent of injury to victims, the length of prior prison commitments, and the remoteness of the crimes.
(2) The petitioner’s disciplinary record and record of rehabilitation while incarcerated.
(3) Any other evidence the court, within its discretion, determines to be relevant in deciding whether a new sentence would result in an unreasonable risk of danger to public safety.
(c) As used throughout this Code, “unreasonable risk of danger to public safety” means an unreasonable risk that the petitioner will commit a new violent felony within the meaning of clause (iv) of subparagraph (C) of paragraph (2) of subdivision (e) of Section 667.
(d) A person who is resentenced pursuant to subdivision (b) shall be given credit for time served and shall be subject to parole for one year following completion of his or her sentence, unless the court, in its discretion, as part of its resentencing order, releases the person from parole. Such person is subject to Section 3000.08 parole supervision by the Department of Corrections and Rehabilitation and the jurisdiction of the court in the county in which the parolee is released or resides, or in which an alleged violation of supervision has occurred, for the purpose of hearing petitions to revoke parole and impose a term of custody.
(e) Under no circumstances may resentencing under this section result in the imposition of a term longer than the original sentence.
(f) A person who has completed his or her sentence for a conviction, whether by trial or plea, of a felony or felonies who would have been guilty of a misdemeanor under this act had this act been in effect at the time of the offense, may file an application before the trial court that entered the judgment of conviction in his or her case to have the felony conviction or convictions designated as misdemeanors.
(g) If the application satisfies the criteria in subdivision (f), the court shall designate the felony offense or offenses as a misdemeanor.
(h) Unless requested by the applicant, no hearing is necessary to grant or deny an application filed under subsection (f).
(i) The provisions of this section shall not apply to persons who have one or more prior convictions for an offense specified in clause (iv) of subparagraph (C) of paragraph (2) of subdivision (e) of Section 667 or for an offense requiring registration pursuant to subdivision (c) of Section 290.
(j) Any petition or application under this section shall be filed on or before November 4, 2022, or at a later date upon showing of good cause.
(k) Any felony conviction that is recalled and resentenced under subdivision (b) or designated as a misdemeanor under subdivision (g) shall be considered a misdemeanor for all purposes, except that such resentencing shall not permit that person to own, possess, or have in his or her custody or control any firearm or prevent his or her conviction under Chapter 2 (commencing with Section 29800) of Division 9 of Title 4 of Part 6.
(l) If the court that originally sentenced the petitioner is not available, the presiding judge shall designate another judge to rule on the petition or application.
(m) Nothing in this section is intended to diminish or abrogate any rights or remedies otherwise available to the petitioner or applicant.
(n) Nothing in this and related sections is intended to diminish or abrogate the finality of judgments in any case not falling within the purview of this act.
(o) A resentencing hearing ordered under this act shall constitute a “post-conviction release proceeding” under paragraph (7) of subdivision (b) of Section 28 of Article I of the California Constitution (Marsy’s Law).
§ 1203.4. Change of plea and dismissal of charges after termination of probation; Release from penalties and disabilities; Subsequent prosecutions; Registration of sex offenders; Possession of firearm; Reimbursement to county or city; Notice to prosecuting attorney
(1) In any case in which a defendant has fulfilled the conditions of probation for the entire period of probation, or has been discharged prior to the termination of the period of probation, or in any other case in which a court, in its discretion and the interests of justice, determines that a defendant should be granted the relief available under this section, the defendant shall, at any time after the termination of the period of probation, if he or she is not then serving a sentence for any offense, on probation for any offense, or charged with the commission of any offense, be permitted by the court to withdraw his or her plea of guilty or plea of nolo contendere and enter a plea of not guilty; or, if he or she has been convicted after a plea of not guilty, the court shall set aside the verdict of guilty; and, in either case, the court shall thereupon dismiss the accusations or information against the defendant and except as noted below, he or she shall thereafter be released from all penalties and disabilities resulting from the offense of which he or she has been convicted, except as provided in Section 13555 of the Vehicle Code. The probationer shall be informed, in his or her probation papers, of this right and privilege and his or her right, if any, to petition for a certificate of rehabilitation and pardon. The probationer may make the application and change of plea in person or by attorney, or by the probation officer authorized in writing. However, in any subsequent prosecution of the defendant for any other offense, the prior conviction may be pleaded and proved and shall have the same effect as if probation had not been granted or the accusation or information dismissed. The order shall state, and the probationer shall be informed, that the order does not relieve him or her of the obligation to disclose the conviction in response to any direct question contained in any questionnaire or application for public office, for licensure by any state or local agency, or for contracting with the California State Lottery Commission.
(2) Dismissal of an accusation or information pursuant to this section does not permit a person to own, possess, or have in his or her custody or control any firearm or prevent his or her conviction under Chapter 2 (commencing with Section 29800) of Division 9 of Title 4 of Part 6.
(3) Dismissal of an accusation or information underlying a conviction pursuant to this section does not permit a person prohibited from holding public office as a result of that conviction to hold public office.
(4) This subdivision shall apply to all applications for relief under this section which are filed on or after November 23, 1970.
(b) Subdivision (a) of this section does not apply to any misdemeanor that is within the provisions of Section 42002.1 of the Vehicle Code, to any violation of subdivision (c) of Section 286, Section 288, subdivision (c) of Section 288a, Section 288.5, subdivision (j) of Section 289, Section 311.1, 311.2, 311.3, or 311.11, or any felony conviction pursuant to subdivision (d) of Section 261.5, or to any infraction.
(1) Except as provided in paragraph (2), subdivision (a) does not apply to a person who receives a notice to appear or is otherwise charged with a violation of an offense described in subdivisions (a) to (e), inclusive, of Section 12810 of the Vehicle Code.
(2) If a defendant who was convicted of a violation listed in paragraph (1) petitions the court, the court in its discretion and in the interests of justice, may order the relief provided pursuant to subdivision (a) to that defendant.
(d) A person who petitions for a change of plea or setting aside of a verdict under this section may be required to reimburse the court for the actual costs of services rendered, whether or not the petition is granted and the records are sealed or expunged, at a rate to be determined by the court not to exceed one hundred fifty dollars ($150), and to reimburse the county for the actual costs of services rendered, whether or not the petition is granted and the records are sealed or expunged, at a rate to be determined by the county board of supervisors not to exceed one hundred fifty dollars ($150), and to reimburse any city for the actual costs of services rendered, whether or not the petition is granted and the records are sealed or expunged, at a rate to be determined by the city council not to exceed one hundred fifty dollars ($150). Ability to make this reimbursement shall be determined by the court using the standards set forth in paragraph (2) of subdivision (g) of Section 987.8 and shall not be a prerequisite to a person’s eligibility under this section. The court may order reimbursement in any case in which the petitioner appears to have the ability to pay, without undue hardship, all or any portion of the costs for services established pursuant to this subdivision.
(1) Relief shall not be granted under this section unless the prosecuting attorney has been given 15 days’ notice of the petition for relief. The probation officer shall notify the prosecuting attorney when a petition is filed, pursuant to this section.
(2) It shall be presumed that the prosecuting attorney has received notice if proof of service is filed with the court.
(f) If, after receiving notice pursuant to subdivision (e), the prosecuting attorney fails to appear and object to a petition for dismissal, the prosecuting attorney may not move to set aside or otherwise appeal the grant of that petition.
(g) Notwithstanding the above provisions or any other provision of law, the Governor shall have the right to pardon a person convicted of a violation of subdivision (c) of Section 286, Section 288, subdivision (c) of Section 288a, Section 288.5, or subdivision (j) of Section 289, if there are extraordinary circumstances.