Litigation guide
Motion to quash a subpoena
Every rule below is quoted word for word from the official text, read November 15, 2026. The plain lines between the quotes are ours.
How do you quash a subpoena in California?
The court can quash a subpoena entirely, modify it, or set the terms of compliance, protective orders included, on a motion reasonably made by a party, the witness or another person the section names, or on its own motion after notice.
(a) If a subpoena requires the attendance of a witness or the production of books, documents, electronically stored information, or other things before a court, or at the trial of an issue therein, or at the taking of a deposition, the court, upon motion reasonably made by any person described in subdivision (b), or upon the court’s own motion after giving counsel notice and an opportunity to be heard, may make an order quashing the subpoena entirely, modifying it, or directing compliance with it upon those terms or conditions as the court shall declare, including protective orders. In addition, the court may make any other order as may be appropriate to protect the person from unreasonable or oppressive demands, including unreasonable violations of the right of privacy of the person.
Who can move to quash a subpoena?
A party, the witness, a consumer or employee whose records are sought, or a person whose identifying information is sought in a case about their free speech may bring the motion.
(b) The following persons may make a motion pursuant to subdivision (a):
(1) A party.
(2) A witness.
(3) A consumer described in Section 1985.3.
(4) An employee described in Section 1985.6.
(5) A person whose personally identifying information, as defined in subdivision (b) of Section 1798.79.8 of the Civil Code, is sought in connection with an underlying action involving that person’s exercise of free speech rights.
Can the court award fees on a motion to quash?
The court may award the reasonable expenses of making or opposing the motion, attorney's fees included, when a side acted in bad faith or without substantial justification, or when a requirement of the subpoena was oppressive. The award to the speaker is mandatory when an online speaker defeats a subpoena to an internet provider for their identifying information in an out of state case about their online speech, and the other side made no prima facie showing of a claim.
(a) Except as specified in subdivision (c), in making an order pursuant to motion made under subdivision (c) of Section 1987 or under Section 1987.1, the court may in its discretion award the amount of the reasonable expenses incurred in making or opposing the motion, including reasonable attorney’s fees, if the court finds the motion was made or opposed in bad faith or without substantial justification or that one or more of the requirements of the subpoena was oppressive.
(c) If a motion is filed under Section 1987.1 for an order to quash or modify a subpoena from a court of this state for personally identifying information, as defined in subdivision (b) of Section 1798.79.8 of the Civil Code, for use in an action pending in another state, territory, or district of the United States, or in a foreign nation, and that subpoena has been served on any Internet service provider, or on the provider of any other interactive computer service, as defined in Section 230(f)(2) of Title 47 of the United States Code, if the moving party prevails, and if the underlying action arises from the moving party’s exercise of free speech rights on the Internet and the respondent has failed to make a prima facie showing of a cause of action, the court shall award the amount of the reasonable expenses incurred in making the motion, including reasonable attorney’s fees.
What about subpoenas for a consumer's personal records?
A consumer who is a party may move to quash before the production date, giving the witness and the deposition officer notice a set number of days before production. A consumer who is not a party, or another nonparty whose records are sought, may also serve a written objection before the production date. After either, the witness need not produce the records except on a court order or the agreement of those affected. After a written objection, the party seeking the records may move to enforce the subpoena within a short deadline, with a declaration showing a good faith attempt to resolve the dispute.
(g) Any consumer whose personal records are sought by a subpoena duces tecum and who is a party to the civil action in which this subpoena duces tecum is served may, prior to the date for production, bring a motion under Section 1987.1 to quash or modify the subpoena duces tecum. Notice of the bringing of that motion shall be given to the witness and deposition officer at least five days prior to production. The failure to provide notice to the deposition officer shall not invalidate the motion to quash or modify the subpoena duces tecum but may be raised by the deposition officer as an affirmative defense in any action for liability for improper release of records.
Any other consumer or nonparty whose personal records are sought by a subpoena duces tecum may, prior to the date of production, serve on the subpoenaing party, the witness, and the deposition officer, a written objection that cites the specific grounds on which production of the personal records should be prohibited.
No witness or deposition officer shall be required to produce personal records after receipt of notice that the motion has been brought by a consumer, or after receipt of a written objection from a nonparty consumer, except upon order of the court in which the action is pending or by agreement of the parties, witnesses, and consumers affected.
The party requesting a consumer’s personal records may bring a motion under Section 1987.1 to enforce the subpoena within 20 days of service of the written objection. The motion shall be accompanied by a declaration showing a reasonable and good faith attempt at informal resolution of the dispute between the party requesting the personal records and the consumer or the consumer’s attorney.
What kinds of deposition subpoenas are there?
Discovery from a nonparty generally runs through a deposition subpoena, which can command testimony only, business records only, or testimony together with records, documents, electronically stored information and tangible things, and each kind has its own requirements.
(b) Except as provided in subdivision (a) of Section 2025.280, the process by which a nonparty is required to provide discovery is a deposition subpoena.
A deposition subpoena may command any of the following:
(a) Only the attendance and the testimony of the deponent, under Article 3 (commencing with Section 2020.310).
(b) Only the production of business records for copying, under Article 4 (commencing with Section 2020.410).
(c) The attendance and the testimony of the deponent, as well as the production of business records, other documents, electronically stored information, and tangible things, under Article 5 (commencing with Section 2020.510).
Is a separate statement required?
A motion to compel or to quash the production of documents or tangible things at a deposition needs a separate statement under the Rules of Court.
(a) Separate statement required
Any motion involving the content of a discovery request or the responses to such a request must be accompanied by a separate statement. The motions that require a separate statement include a motion:
(1) To compel further responses to requests for admission;
(2) To compel further responses to interrogatories;
(3) To compel further responses to a demand for inspection of documents or tangible things;
(4) To compel answers at a deposition;
(5) To compel or to quash the production of documents or tangible things at a deposition;
(6) For medical examination over objection; and
(7) For issue or evidentiary sanctions.
How much notice does the motion need?
A motion to quash is noticed like other motions, so the general notice period, plus any days the method of service adds, applies unless the law provides otherwise or the court orders a shorter time.
(b) Unless otherwise ordered or specifically provided by law, all moving and supporting papers shall be served and filed at least 16 court days before the hearing. The moving and supporting papers served shall be a copy of the papers filed or to be filed with the court. However, if the notice is served by mail, the required 16-day period of notice before the hearing shall be increased by five calendar days if the place of mailing and the place of address are within the State of California, 10 calendar days if either the place of mailing or the place of address is outside the State of California but within the United States, 12 calendar days if the place of address is the Secretary of State’s address confidentiality program (Chapter 3.1 (commencing with Section 6205) of Division 7 of Title 1 of the Government Code), and 20 calendar days if either the place of mailing or the place of address is outside the United States, and if the notice is served by facsimile transmission, express mail, or another method of delivery providing for overnight delivery, the required 16-day period of notice before the hearing shall be increased by two calendar days. Section 1013, which extends the time within which a right may be exercised or an act may be done, does not apply to a notice of motion, papers opposing a motion, or reply papers governed by this section. All papers opposing a motion so noticed shall be filed with the court and a copy served on each party at least nine court days, and all reply papers at least five court days before the hearing.
The court, or a judge thereof, may prescribe a shorter time.
Before you file
- 1Quote Code Civ. Proc., § 1987.1 from the official text, as it reads today, not from memory or an AI summary.
- 2Check the assigned judge's own department rules and recent tentative rulings. A department can set an earlier briefing deadline, a shorter page limit or its own format than the code or the Rules of Court; Aristo reads them for the judge you drew.
- 3See how the assigned judge has ruled on the same kind of motion, counted from the judge's own tentative rulings where the court posts them. Aristo counts them by motion type for the judge you drew.
The sections and rules this guide rests on
Each opens with its full official text, the day it was read and what cites it.
- Code of Civil Procedure section 1987.1: Motion to quash a subpoena
- Code of Civil Procedure section 1987.2: Except as specified in subdivision (c), in making an order pursuant to motion made under subdivision (c) of…
- Code of Civil Procedure section 1985.3: Subpoena for a consumer's personal records
- Code of Civil Procedure section 1985.6: Subpoena for employment records
- Code of Civil Procedure section 2020.010: Any of the following methods may be used to obtain discovery within the state from a person who is not a…
- Code of Civil Procedure section 2020.020: A deposition subpoena may command any of the following:
- Code of Civil Procedure section 2020.410: A deposition subpoena that commands only the production of business records for copying shall designate the…
- Code of Civil Procedure section 2020.510: A deposition subpoena that commands the attendance and the testimony of the deponent, as well as the…
- Rule 3.1345: Format of discovery motions
- Code of Civil Procedure section 1005: Notice of motion
Related guides
- Motion to compel further responses: How do you move to compel further discovery responses in California?
- California discovery cutoff: When is the discovery cutoff in California?
About this page
Aristo publishes these pages free, quoted from the official sources. Its service, Aristo, connects to Claude, ChatGPT or Harvey with one link and gives the AI the assigned judge's record: the department's posted rules word for word and, where the court posts them, the judge's recent tentative rulings and how the judge has ruled on each kind of motion, each with its source and date, so the draft is written for that judge from the record, not from memory. The first week is free at aristolaw.net, with no card.