Skip to main content
Cal. CodesPenal CodePart 3. Of Imprisonment and the Death PenaltyTitle 4. County Jails, Farms and CampsChapter 1. County Jails

Cal. Penal Code § 4004 (2026)

Edition and currency
leginfo export of Nov. 23, 2026: changes through Nov. 11, 2026 (checked Nov. 24, 2026). The text is the edition Syfert holds; for a past event, check the version in force on that date.
Other sources
CURRENTleginfo export of Nov. 23, 2026: changes through Nov. 11, 2026 (checked Nov. 24, 2026) cited 1951–2018 5citing cases
At a glance

Courts have cited this section in 5 opinions since 1951.

A prisoner committed to the county jail for examination, or upon conviction for a public offense, must be actually confined in the jail until legally discharged; and if the prisoner is permitted to go at large out of the jail, except by virtue of a legal order or process, it is an escape; provided, however, that during the pendency of a criminal proceeding, the court before which said proceeding is pending may make a legal order, good cause appearing therefor, for the removal of the prisoner from the county jail in custody of the sheriff. In courts where there is a marshal, the marshal shall maintain custody of such prisoner while the prisoner is in the court facility pursuant to such court order. The superior court of the county may make a legal order, good cause appearing therefor, for the removal of prisoners confined in the county jail, after conviction, in the custody of the sheriff.

If facilities are no longer available in the county jail due to crowded conditions, a sheriff may transfer a person committed to the county jail upon conviction for a public offense to facilities which are available in the city jail, as provided for in Section 4004.5.

The 5 cases that cite Cal. Penal Code § 4004 most heavily, weighted by court and treatment. RelevanceNewestTreatment
1
GREENBlock v. Superior Court, 62 Cal. App. 4th 363 (Ct. App. 1998).
cites § 4004 10×cited by 3 cases
Where it cites § 4004
“The question is whether, pursuant to Penal Code section 4004 (hereafter section 4004), good cause exists for Downey’s release.”
2
GREENAm. Contract Servs. v. Allied Mold & Die, Inc., 94 Cal. App. 4th 854 (Ct. App. 2001).
cites § 4004 1×cited by 15 cases
Where it cites § 4004
“The court indicated: “Implicit in the ‘good cause’ requirement of section 4004 is that such orders will only be issued in exceptional circumstances, and then only rarely.”
3
GREENPeople v. Buckowski, 37 Cal. 2d 629 (1951).
cites § 4004 1×cited by 34 cases
Where it cites § 4004
“The defendant claims that his removal from jail for the purpose of this trip was not authorized under the provisions of Penal Code, section 4004.”
The case’s holding
Expert identification testimony, including palm print and ballistics comparison, can sufficiently establish identity, and a burglary inference supports first degree felony murder without proof of property taken.
4
REDPeople v. Gilbert, 63 Cal. 2d 690 (1965).
cites § 4004 3×cited by 250 cases
Vacated by Gilbert v. California (1967): the U.S. Supreme Court's own opinion in this case.
Where it cites § 4004
“) Moreover, we see no compelling reason to adopt an exclusionary rule to enforce compliance with section 4004.”
The case’s holding
Statements obtained during custodial interrogation are inadmissible if the suspect is not advised of the right to counsel or the right to remain silent.
Later courts cite it for
“when the defendant or his accomplice, with a conscious disregard for life, intentionally commits an act that is likely to cause death, and his victim or a police officer kills in reasonable response to such act, the defendant is guilty of murder.” · 6 citing courts
5
GREENWelchen v. Cnty. of Sacramento, 343 F. Supp. 3d 924 (E.D. Cal. 2018).
cites § 4004 1×cited by 1 case
Where it cites § 4004
“As in McNeely , where the court found that Cal. Pen. Code § 4004 requires sheriffs to detain arrestees "until legally discharged," here, the Sheriff similarly does not have discretion when implementing the Bail Law.”

The flag is Syfertize’s treatment of the citing case itself, not of the statute. “Where it cites” is the passage in the opinion; the holding is a summary of the whole case and may concern another point. Annotations are extracted automatically from the opinions in the Syfert caselaw corpus.

Citing cases by year
195019842018

One bar per 2 years. Tallest: 1 case in 1950–1951. These are opinions in the Syfert collection, which holds more of some courts’ recent opinions than their older ones, so a rise can reflect what the collection holds and not more litigation.

By court
Cal.2Cal. Ct. App.2E.D. Cal.1
By subsection

Courts have not cited this section by subsection, so its cases are not split up here. The Leading cases tab lists the cases that cite it most heavily.

Enactment and amendments
Amended by Stats. 1998, Ch. 931, Sec. 433. Effective September 28, 1998.
Versions

Edition shown: leginfo export of Nov. 23, 2026: changes through Nov. 11, 2026 (checked Nov. 24, 2026). Syfert holds no earlier or later version of this section.