If you are looking for information on sealing a deferred drug offense read California penal code section 851.9.
851.8. (a) In any case where a person has been arrested and no accusatory pleading has been filed, the person arrested may petition the law enforcement agency having jurisdiction over the offense to destroy its records of the arrest. A copy of the petition shall be served upon the prosecuting attorney of the county or city having jurisdiction over the offense. The law enforcement agency having jurisdiction over the offense, upon a determination that the person arrested is factually innocent, shall, with the concurrence of the prosecuting attorney, seal its arrest records, and the petition for relief under this section for three years from the date of the arrest and thereafter destroy its arrest records and the petition. The law enforcement agency having jurisdiction over the offense shall notify the Department of Justice, and any law enforcement agency that arrested the petitioner or participated in the arrest of the petitioner for an offense for which the petitioner has been found factually innocent under this subdivision, of the sealing of the arrest records and the reason therefor. The Department of Justice and any law enforcement agency so notified shall forthwith seal their records of the arrest and the notice of sealing for three years from the date of the arrest, and thereafter destroy their records of the arrest and the notice of sealing. The law enforcement agency having jurisdiction over the offense and the Department of Justice shall request the destruction of any records of the arrest which they have given to any local, state, or federal agency or to any other person or entity. Each agency, person, or entity within the State of California receiving the request shall destroy its records of the arrest and the request, unless otherwise provided in this section.
(b) If, after receipt by both the law enforcement agency and the prosecuting attorney of a petition for relief under subdivision (a), the law enforcement agency and prosecuting attorney do not respond to the petition by accepting or denying the petition within 60 days after the running of the relevant statute of limitations or within 60 days after receipt of the petition in cases where the statute of limitations has previously lapsed, then the petition shall be deemed to be denied. In any case where the petition of an arrestee to the law enforcement agency to have an arrest record destroyed is denied, petition may be made to the superior court that would have had territorial jurisdiction over the matter. A copy of the petition shall be served on the law enforcement agency and the prosecuting attorney of the county or city having jurisdiction over the offense at least 10 days prior to the hearing thereon. The prosecuting attorney and the law enforcement agency through the district attorney may present evidence to the court at the hearing. Notwithstanding Section 1538.5 or 1539, any judicial determination of factual innocence made pursuant to this section may be heard and determined upon declarations, affidavits, police reports, or any other evidence submitted by the parties which is material, relevant, and reliable. A finding of factual innocence and an order for the sealing and destruction of records pursuant to this section shall not be made unless the court finds that no reasonable cause exists to believe that the arrestee committed the offense for which the arrest was made. In any court hearing to determine the factual innocence of a party, the initial burden of proof shall rest with the petitioner to show that no reasonable cause exists to believe that the arrestee committed the offense for which the arrest was made. If the court finds that this showing of no reasonable cause has been made by the petitioner, then the burden of proof shall shift to the respondent to show that a reasonable cause exists to believe that the petitioner committed the offense for which the arrest was made. If the court finds the arrestee to be factually innocent of the charges for which the arrest was made, then the court shall order the law enforcement agency having jurisdiction over the offense, the Department of Justice, and any law enforcement agency which arrested the petitioner or participated in the arrest of the petitioner for an offense for which the petitioner has been found factually innocent under this section to seal their records of the arrest and the court order to seal and destroy the records, for three years from the date of the arrest and thereafter to destroy their records of the arrest and the court order to seal and destroy those records. The court shall also order the law enforcement agency having jurisdiction over the offense and the Department of Justice to request the destruction of any records of the arrest which they have given to any local, state, or federal agency, person or entity. Each state or local agency, person or entity within the State of California receiving such a request shall destroy its records of the arrest and the request to destroy the records, unless otherwise provided in this section. The court shall give to the petitioner a copy of any court order concerning the destruction of the arrest records.
(c) In any case where a person has been arrested, and an accusatory pleading has been filed, but where no conviction has occurred, the defendant may, at any time after dismissal of the action, petition the court that dismissed the action for a finding that the defendant is factually innocent of the charges for which the arrest was made. A copy of the petition shall be served on the prosecuting attorney of the county or city in which the accusatory pleading was filed at least 10 days prior to the hearing on the petitioner's factual innocence. The prosecuting attorney may present evidence to the court at the hearing. The hearing shall be conducted as provided in subdivision (b). If the court finds the petitioner to be factually innocent of the charges for which the arrest was made, then the court shall grant the relief as provided in subdivision (b).
(d) In any case where a person has been arrested and an accusatory pleading has been filed, but where no conviction has occurred, the court may, with the concurrence of the prosecuting attorney, grant the relief provided in subdivision (b) at the time of the dismissal of the accusatory pleading.
(e) Whenever any person is acquitted of a charge and it appears to the judge presiding at the trial at which the acquittal occurred that the defendant was factually innocent of the charge, the judge may grant the relief provided in subdivision (b).
(f) In any case where a person who has been arrested is granted relief pursuant to subdivision (a) or (b), the law enforcement agency having jurisdiction over the offense or court shall issue a written declaration to the arrestee stating that it is the determination of the law enforcement agency having jurisdiction over the offense or court that the arrestee is factually innocent of the charges for which the person was arrested and that the arrestee is thereby exonerated. Thereafter, the arrest shall be deemed not to have occurred and the person may answer accordingly any question relating to its occurrence.
(g) The Department of Justice shall furnish forms to be utilized by persons applying for the destruction of their arrest records and for the written declaration that one person was found factually innocent under subdivisions (a) and (b).
(h) Documentation of arrest records destroyed pursuant to subdivision (a), (b), (c), (d), or (e) that are contained in investigative police reports shall bear the notation “Exonerated” whenever reference is made to the arrestee. The arrestee shall be notified in writing by the law enforcement agency having jurisdiction over the offense of the sealing and destruction of the arrest records pursuant to this section.
(i)(1) Any finding that an arrestee is factually innocent pursuant to subdivision (a), (b), (c), (d), or (e) shall not be admissible as evidence in any action.
(2) Notwithstanding paragraph (1), a finding that an arrestee is factually innocent pursuant to subdivisions (a) to (e), inclusive, shall be admissible as evidence at a hearing before the California Victim Compensation and Government Claims Board.
(j) Destruction of records of arrest pursuant to subdivision (a), (b), (c), (d), or (e) shall be accomplished by permanent obliteration of all entries or notations upon the records pertaining to the arrest, and the record shall be prepared again so that it appears that the arrest never occurred. However, where (1) the only entries on the record pertain to the arrest and (2) the record can be destroyed without necessarily affecting the destruction of other records, then the document constituting the record shall be physically destroyed.
(k) No records shall be destroyed pursuant to subdivision (a), (b), (c), (d), or (e) if the arrestee or a codefendant has filed a civil action against the peace officers or law enforcement jurisdiction which made the arrest or instituted the prosecution and if the agency which is the custodian of the records has received a certified copy of the complaint in the civil action, until the civil action has been resolved. Any records sealed pursuant to this section by the court in the civil actions, upon a showing of good cause, may be opened and submitted into evidence. The records shall be confidential and shall be available for inspection only by the court, jury, parties, counsel for the parties, and any other person authorized by the court. Immediately following the final resolution of the civil action, records subject to subdivision (a), (b), (c), (d), or (e) shall be sealed and destroyed pursuant to subdivision (a), (b), (c), (d), or (e).
(l) For arrests occurring on or after January 1, 1981, and for accusatory pleadings filed on or after January 1, 1981, petitions for relief under this section may be filed up to two years from the date of the arrest or filing of the accusatory pleading, whichever is later. Until January 1, 1983, petitioners can file for relief under this section for arrests which occurred or accusatory pleadings which were filed up to five years prior to the effective date of the statute. Any time restrictions on filing for relief under this section may be waived upon a showing of good cause by the petitioner and in the absence of prejudice.
(m) Any relief which is available to a petitioner under this section for an arrest shall also be available for an arrest which has been deemed to be or described as a detention under Section 849.5 or 851.6.
(n) This section shall not apply to any offense which is classified as an infraction.
(o)(1) This section shall be repealed on the effective date of a final judgment based on a claim under the California or United States Constitution holding that evidence that is relevant, reliable, and material may not be considered for purposes of a judicial determination of factual innocence under this section. For purposes of this subdivision, a judgment by the appellate division of a superior court is a final judgment if it is published and if it is not reviewed on appeal by a court of appeal. A judgment of a court of appeal is a final judgment if it is published and if it is not reviewed by the California Supreme Court.
(2) Any decision referred to in this subdivision shall be stayed pending appeal.
(3) If not otherwise appealed by a party to the action, any decision referred to in this subdivision which is a judgment by the appellate division of the superior court shall be appealed by the Attorney General.
(p) A judgment of the court under subdivision (b), (c), (d), or (e) is subject to the following appeal path:
(1) In a felony case, appeal is to the court of appeal.
(2) In a misdemeanor case, or in a case in which no accusatory pleading was filed, appeal is to the appellate division of the superior court.
(Amended by Stats. 2016, Ch. 31, Sec. 235. (SB 836) Effective June 27, 2016. Repealed conditionally as provided in subd. (o).)
§ 851.91. (a) A person who has suffered an arrest that did not result in a conviction may petition the court to have his or her arrest and related records sealed, as described in Section 851.92.
(1) For purposes of this section, an arrest did not result in a conviction if any of the following are true:
(A) The statute of limitations has run on every offense upon which the arrest was based and the prosecuting attorney of the city or county that would have had jurisdiction over the offense or offenses upon which the arrest was based has not filed an accusatory pleading based on the arrest.
(B) The prosecuting attorney filed an accusatory pleading based on the arrest, but, with respect to all charges, one or more of the following has occurred:
(i) No conviction occurred, the charge has been dismissed, and the charge may not be refiled.
(ii) No conviction occurred and the arrestee has been acquitted of the charges.
(iii) A conviction occurred, but has been vacated or reversed on appeal, all appellate remedies have been exhausted, and the charge may not be refiled.
(2) A person is not eligible for relief under this section in any of the following circumstances:
(A) He or she may still be charged with any of the offenses upon which the arrest was based.
(B) Any of the arrest charges, as specified by the law enforcement agency that conducted the arrest, or any of the charges in the accusatory pleading based on the arrest, if filed, is a charge of murder or any other offense for which there is no statute of limitations, except when the person has been acquitted or found factually innocent of the charge.
(C) The petitioner intentionally evaded law enforcement efforts to prosecute the arrest, including by absconding from the jurisdiction in which the arrest took place. The existence of bench warrants or failures to appear that were adjudicated before the case closed with no conviction do not establish intentional evasion.
(D) The petitioner intentionally evaded law enforcement efforts to prosecute the arrest by engaging in identity fraud and was subsequently charged with a crime for that act of identity fraud.
(b) (1) A petition to seal an arrest shall:
(A) Be verified.
(B) Be filed in the court in which the accusatory pleading based on the arrest was filed or, if no accusatory pleading was filed, in a court with criminal jurisdiction in the city or county in which the arrest occurred.
(C) Be filed at least 15 days prior to the hearing on the petition.
(D) Be served, by copy, upon the prosecuting attorney of the city or county in which the arrest occurred and upon the law enforcement agency that made the arrest at least 15 days prior to the hearing on the petition.
(E) Include all of the following information:
(i) The petitioner’s name and date of birth.
(ii) The date of the arrest for which sealing is sought.
(iii) The city and county where the arrest took place.
(iv) The law enforcement agency that made the arrest.
(v) Any other information identifying the arrest that is available from the law enforcement agency that conducted the arrest or from the court in which the accusatory pleading, if any, based on the arrest was filed, including, but not limited to, the case number for the police investigative report documenting the arrest, and the court number under which the arrest was reviewed by the prosecuting attorney or under which the prosecuting attorney filed an accusatory pleading.
(vi) The offenses upon which the arrest was based or, if an accusatory pleading was filed based on the arrest, the charges in the accusatory pleading.
(vii) A statement that the petitioner is entitled to have his or her arrest sealed as a matter of right or, if the petitioner is requesting to have his or her arrest sealed in the interests of justice, how the interests of justice would be served by granting the petition, accompanied by declarations made directly and verified by the petitioner, his or her supporting declarants, or both.
(2) The court may deny a petition for failing to meet any of the requirements described in paragraph (1).
(3) (A) The Judicial Council shall furnish forms to be utilized by a person applying to have his or her arrest sealed pursuant to this section. The petition form shall include all of the information required to be included in the petition by paragraph (1) of subdivision (b), shall be available in English, Spanish, Chinese, Vietnamese, and Korean, and shall include a statement that the petition form is available in additional languages and the Internet Web site where the form is available in alternative languages. The forms shall include notice of other means to address arrest records, including a determination of factual innocence under Section 851.8 and deeming an arrest a detention under Section 849.5.
(B) (i) A facility at which an arrestee is detained shall, at the request of an arrestee upon release, provide the forms furnished by Judicial Council pursuant to subparagraph (A) to the arrestee.
(ii) A facility at which an arrestee is detained shall post a sign containing the following information: “A person who has been arrested but not convicted may petition the court to have his or her arrest and related records sealed. The petition form is available on the Internet or upon request in this facility.”
(c) A petition to seal an arrest record pursuant to this section may be granted as a matter of right or in the interests of justice.
(1) A petitioner who is eligible for relief under subdivision (a) is entitled to have his or her arrest sealed as a matter of right unless he or she is subject to paragraph (2).
(2) (A) (i) A petitioner may have his or her arrest sealed only upon a showing that the sealing would serve the interests of justice if any of the offenses upon which the arrest was based, as specified by the law enforcement agency that made the arrest, or, if an accusatory pleading was filed, any of the charges in the accusatory pleading, was one of the following:
(I) Domestic violence, if the petitioner’s record demonstrates a pattern of domestic violence arrests, convictions, or both.
(II) Child abuse, if the petitioner’s record demonstrates a pattern of child abuse arrests, convictions, or both.
(III) Elder abuse, if the petitioner’s record demonstrates a pattern of elder abuse arrests, convictions, or both.
(ii) For purposes of this subparagraph, “pattern” means two or more convictions, or five or more arrests, for separate offenses occurring on separate occasions within three years from at least one of the other convictions or arrests.
(B) In determining whether the interests of justice would be served by sealing an arrest record pursuant to this section, the court may consider any relevant factors, including, but not limited to, any of the following:
(i) Hardship to the petitioner caused by the arrest that is the subject of the petition.
(ii) Declarations or evidence regarding the petitioner’s good character.
(iii) Declarations or evidence regarding the arrest.
(iv) The petitioner’s record of convictions.
(d) (1) At a hearing on a petition under this section, the petitioner, the prosecuting attorney, and, through the prosecuting attorney, the arresting agency may present evidence to the court. Notwithstanding Section 1538.5 or 1539, the hearing may be heard and determined upon declarations, affidavits, police investigative reports, copies of state summary criminal history information and local summary criminal history information, or any other evidence submitted by the parties that is material, relevant, and reliable.
(2) The petitioner has the initial burden of proof to show that he or she is entitled to have his or her arrest sealed as a matter of right or that sealing would serve the interests of justice. If the court finds that petitioner has satisfied his or her burden of proof, then the burden of proof shall shift to the respondent prosecuting attorney.
(e) If the court grants a petition pursuant to this section, the court shall do all of the following:
(1) Furnish a disposition report to the Department of Justice, pursuant to Section 13151, stating that relief was granted under this section.
(2) (A) Issue a written ruling and order to the petitioner, the prosecuting attorney, and to the law enforcement agency that made the arrest that states all of the following:
(B) The record of arrest has been sealed as to petitioner, the arrest is deemed not to have occurred, the petitioner may answer any question relating to the sealed arrest accordingly, and the petitioner is released from all penalties and disabilities resulting from the arrest, except as provided in Section 851.92 and as follows:
(i) The sealed arrest may be pleaded and proved in any subsequent prosecution of the petitioner for any other offense, and shall have the same effect as if it had not been sealed.
(ii) The sealing of an arrest pursuant to this section does not relieve the petitioner of the obligation to disclose the arrest, if otherwise required by law, in response to any direct question contained in a questionnaire or application for public office, for employment as a peace officer, for licensure by any state or local agency, or for contracting with the California State Lottery Commission.
(iii) The sealing of an arrest pursuant to this section does not affect petitioner’s authorization to own, possess, or have in his or her custody or control any firearm, or his or her susceptibility to conviction under Chapter 2 (commencing with Section 29800) of Division 9 of Title 4 of Part 6, if the arrest would otherwise affect this authorization or susceptibility.
(iv) The sealing of an arrest pursuant to this section does not affect any prohibition from holding public office that would otherwise apply under law as a result of the arrest.
(Amended Stats. 2018, Ch. 653, Sec. 1. (AB 2599) Effective January 1, 2019.)