Code of Civil Procedure
Code of Civil Procedure section 1987.1Motion to quash a subpoena
Cite as Code Civ. Proc., § 1987.1. Read from the California Legislature's official code files on November 15, 2026.
What this means for your filing
A court may quash or modify a subpoena, or make a protective order, on a motion reasonably made by the persons this section names.
Guides that use this section
- Motion to quash a subpoena: How do you quash a subpoena in California?
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.
Official text
(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.
(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.
(c) Nothing in this section shall require any person to move to quash, modify, or condition any subpoena duces tecum of personal records of any consumer served under paragraph (1) of subdivision (b) of Section 1985.3 or employment records of any employee served under paragraph (1) of subdivision (b) of Section 1985.6.
Source and history
- Citation
- Code Civ. Proc., § 1987.1
- Effective
- January 1, 2013
- Where it sits
- Part 4. Miscellaneous provisions / Title 3. Of the production of evidence / Chapter 2. Means of Production
- History
- Amended by Stats. 2012, Ch. 72, Sec. 6. (SB 1574) Effective January 1, 2013.
- Official copy
- Read it on the official site
- Read from
- California Legislature PUBINFO session archive pubinfo_2025.zip, on November 15, 2026
This text refers to
- 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
Cited in
- 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 1987.2: Except as specified in subdivision (c), in making an order pursuant to motion made under subdivision (c) of…
Every section in Code of Civil Procedure on Aristo · All California law
Public record, quoted from the official source. Not legal advice.
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.
See it work
The code is half the answer. Your judge is the other half.
The same AI was asked the same question twice. Alone, it answered from memory. With Aristo, it quoted the code word for word, then read the judge's own department page and found the deadline that comes first.
Draft the opening of our opposition to the defense summary judgment motion in a complex wage and hour case before Judge Nancy Fineman in San Mateo, citing the code and the Rules of Court. When is it due?
Your AI aloneFrom memory
The opposition is due at least 20 days before the hearing, counting court days, and the reply at least 11 court days before the hearing (Code Civ. Proc., § 437c, subd. (b)(2), (3)). Confirm the hearing date on the court's docket and check Judge Fineman's department for any standing order shortening or extending that schedule.
Your AI with AristoFrom Aristo's record, with sources
The opposition is due "not less than 20 days preceding the noticed or continued date of hearing"1 (Code Civ. Proc., § 437c, subd. (b)(2)1). Judge Fineman's own department page requires all briefing to be completed at least three (3) weeks before the hearing date2, so her date comes first and is the one to file by. The memorandum may not exceed 20 pages3, and the opposition must include a separate statement responding to each fact the defense claims is undisputed (Cal. Rules of Court, rule 3.1350, subd. (f)4; Code Civ. Proc., § 437c, subd. (b)(3)1). Any written evidentiary objections must be served and filed with the opposition (Cal. Rules of Court, rule 3.1354, subd. (a)5).
- 1Code Civ. Proc., § 437c (California Legislature), read November 15, 2026
- 2Department 4 (Nancy L. Fineman), read November 12, 2026
- 3California Rules of Court: Rule 3.1113. Memorandum, read November 15, 2026
- 4California Rules of Court: Rule 3.1350. Motion for summary judgment or summary adjudication, read November 15, 2026
- 5California Rules of Court: Rule 3.1354. Written objections to evidence, read November 15, 2026
What Aristo gave your AI for the whole answer
- 4 of Dept. 4's own rules on summary judgment, word for word
- 6 California Rules of Court and 1 code section, word for word
From 12 official sources, read Nov 12 to Nov 15, 2026
Aristo gave your AI: 4 of Dept. 4's own rules on summary judgment, word for word · 6 California Rules of Court and 1 code section, word for word
From 12 official sources ·