> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Cal. Penal Code - PEN § 1008. — Section 1008.

- **Citation**: Cal. Penal Code - PEN § 1008.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Penal Code - PEN (PEN)
- **Official Source**: [https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip](https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/california/penal-code/part-2/title-6/chapter-3/section-1008](https://corpuslaw.us/codes/california/penal-code/part-2/title-6/chapter-3/section-1008)
- **Semantic URL**: [https://corpuslaw.us/codes/california/penal-code/part-2/title-6/chapter-3/section-1008](https://corpuslaw.us/codes/california/penal-code/part-2/title-6/chapter-3/section-1008)

## Hierarchy

Title PEN — Penal Code - PEN > Part 2. — PART 2. OF CRIMINAL PROCEDURE [681. - 1620.] > Title 6. — TITLE 6. PLEADINGS AND PROCEEDINGS BEFORE TRIAL [976. - 1054.10.] > Chapter 3. — CHAPTER 3. Demurrer and Amendment [1002. - 1012.]

## Text

If the demurrer is sustained, and no amendment of the accusatory pleading is permitted, or, in case an amendment is permitted, no amendment is made or amended pleading is filed within the time fixed therefor, the action shall be dismissed, and, except as provided in Section 1010, the court must order, if the defendant is in custody, that he be discharged or if he has been admitted to bail, that his bail be exonerated, or, if money or other property has been deposited instead of bail for his appearance, that such money or other property be refunded to him or to the person or persons found by the court to have deposited such money or other property on his behalf.
