Yes, you can withdraw a plea in California under Penal Code § 1018, but only by proving “good cause” with clear and convincing evidence. You must act inside one of the permissible windows: before the judge imposes sentence, or within a limited period after a probation order if the court suspended entry of judgment. Miss both windows and § 1018 stops being an option entirely.
TL;DR:
- Filing a motion to withdraw a plea must be done within the two windows before sentencing or within a limited period after a probation order, or it will be unavailable.
- Good cause requires specific defects such as ineffective counsel, lack of immigration advisals, coercion, or procedural errors, supported by thorough evidence and transcripts.
- Gathering transcripts, communication records, and personal accounts promptly is critical, as delays can weaken or invalidate the motion.
- The success of a plea withdrawal hinges on early, well-documented claims with strong evidence, especially when filed within the legal window and with new counsel if needed.
- Once the windows close, alternative remedies like § 1473.7, habeas, coram nobis, or § 1203.4 are narrower, more complex, and require different procedures.
Table of Contents
- Understanding the motion to withdraw plea California process
- What counts as “good cause” to withdraw a plea?
- How much time do you have to withdraw a plea?
- Filing a motion to withdraw a plea: the checklist
- What happens if the motion is granted or denied?
- Remedies after the §1018 windows close
- Practical steps to take right now
- What are the real odds of winning a plea withdrawal motion?
- How Grace Legal Group approaches a plea withdrawal case
- Statutes and forms worth bookmarking
- Sources
Understanding the motion to withdraw plea California process
A motion to withdraw a plea under California Penal Code § 1018 asks a judge to unwind a guilty or no-contest plea and return the case to where it stood before the plea was entered. The defendant, or an attorney acting on their behalf, files the motion with the same court that took the plea. If a judge grants it, the plea and any related sentence get vacated. The case doesn’t disappear; it restarts, usually with arraignment or pretrial proceedings picking back up as though the plea never happened.
This is different from post-judgment relief like § 1203.4 dismissal or § 1473.7 immigration-based vacatur, which apply after a case has already run its course. Section 1018 is a pre-judgment or near-judgment tool. Once a defendant is sentenced and the six-month probation window (where applicable) closes, courts treat the plea as final and shift toward the narrower remedies covered later in this guide.
Judges do not grant these motions lightly. California courts balance two competing interests every time one of these motions lands on their desk:
- Finality: the system needs pleas to mean something, or plea bargaining collapses.
- Fairness: a plea entered through confusion, pressure, or bad legal advice isn’t a voluntary plea at all.
A well-documented motion filed early gives a judge a legitimate reason to favor fairness over finality.
What counts as “good cause” to withdraw a plea?
Courts don’t accept “I changed my mind” as good cause. They look for a specific defect in how the plea came about. The most common accepted grounds fall into four buckets.
Ineffective assistance of counsel. If your prior attorney failed to investigate an obvious defense, gave you wrong information about the charges, or pressured you into a plea without explaining the trial alternative, that can qualify. Courts want specifics: what the attorney did or did not do, and how it changed your decision to plead.
Failure to advise of immigration consequences. Under Penal Code § 1016.5, a judge must warn a defendant that a plea can trigger deportation, exclusion from admission, or denial of naturalization. When that advisal never happened, or happened incorrectly, appellate authority including the Arriaga line of cases supports withdrawal if the defendant can show they likely would have rejected the deal had they understood the immigration stakes.
Coercion, duress, or mistake. This covers pleas entered under threats, pleas taken by someone who didn’t understand English well enough to follow the proceeding, or pleas based on a factual misunderstanding of the charges being pled to.
Procedural defects. Missing advisals about the right to a jury trial, no waiver of rights on the record, or entering a plea without counsel present when counsel was required.
Evidence carries these motions. Courts expect to see the plea transcript, any email or text communication with prior counsel, a sworn declaration from the defendant describing what happened, and, where relevant, an expert declaration (immigration counsel or a mental health professional) supporting the claim.
Pro Tip: Order your plea transcript the same week you decide to pursue withdrawal. Court reporters and transcription services in busier California counties can take weeks to turn around a request, and that delay eats into your filing window.

How much time do you have to withdraw a plea?
Section 1018 gives you two possible windows to file a motion, and missing both is typically fatal to the motion.
- Before judgment: you can file any time after entering the plea but before the court formally sentences you.
- Within a certain limited period after a probation order: if the court suspended imposition of sentence and placed you on probation, you may have a limited window from that probation order to move for withdrawal.
Once both windows close, § 1018 generally no longer applies. That doesn’t mean you’re out of options entirely, but the remedies get narrower and harder to win, which is covered further down.
A practical note: local superior courts vary in how fast they calendar these motions, and a filed motion doesn’t stop the clock on other deadlines like appeal periods. The Los Angeles Superior Court’s criminal division posts its own filing procedures, and confirming those local rules before you file saves you a rejected filing and a lost week. If you’re weighing whether prior counsel’s performance is part of your claim, that’s also the moment to bring in new counsel rather than wait.
Filing a motion to withdraw a plea: the checklist
Filing isn’t a form you fill out in an afternoon. It’s a structured legal document backed by evidence, and the details matter.
- Determine who should file. If your claim involves your prior attorney’s performance, that attorney has a conflict of interest and cannot ethically represent you on the motion. Bring in new counsel immediately.
- Draft the motion itself. It needs a factual narrative explaining exactly what happened, the legal authority supporting your ground (§ 1018, § 1016.5, relevant case law), the specific relief you’re asking for, and a proposed order for the judge to sign.
- Attach supporting exhibits. This typically includes the plea transcript, any relevant correspondence, and documentary evidence tied to your specific ground.
- Prepare a sworn declaration. You’ll sign this under penalty of perjury, laying out the facts in your own words: what you were told, what you understood, and what changed. For immigration claims, Judicial Council form CR-187 offers a model structure for the supporting facts and can support a request for appointed counsel if you qualify.
- Serve the district attorney’s office. California procedure requires notice to the prosecution, giving them the chance to respond or oppose.
- Request a hearing date through the clerk’s office and confirm the court’s local filing requirements.
- Prepare for a contested hearing. Expect the prosecution to push back, especially if the case is old or witnesses have moved on. Bring your declarant, or be ready to testify yourself, and anticipate cross-examination on the specifics of your claim.
Timing bleeds into everything on this list. A motion drafted in a rush, without a transcript or a clean declaration, tends to get denied on the papers before it ever reaches a hearing.
What happens if the motion is granted or denied?
If a judge grants the motion, the plea and any sentence are vacated. The case reverts to its pre-plea posture, which means the prosecution can retry the case, renegotiate a new deal, or in rarer instances decide not to proceed at all. Granting the motion is not the same as winning the case. It’s a reset button, and it comes with real exposure: witnesses may be more available now, evidence issues that favored you before might not hold up the same way years later.
If the judge denies the motion, the original plea and sentence stand. You still have options, but they narrow considerably.
- Appeal: California appellate courts review a denial for abuse of discretion, a difficult standard to meet unless the judge clearly ignored the law or the record.
- Post-judgment remedies: § 1473.7 or habeas corpus may still be available depending on your custody status and the nature of your claim.
Weigh the reset risk seriously before filing, especially in cases where the original plea deal was genuinely favorable.
Remedies after the §1018 windows close
Once § 1018 is off the table, four narrower paths remain, each with its own standard and audience.
- Penal Code § 1473.7 lets a person no longer in custody challenge a conviction where they weren’t properly advised of immigration consequences, or where prejudicial error affected their ability to understand the plea’s actual consequences. These filings usually need a detailed immigration declaration laying out the real-world deportation risk.
- Coram nobis is a narrow, old-school remedy for correcting a factual error that wasn’t known at the time of the plea and that would have changed the outcome. It’s rarely successful and generally reserved for defendants who are no longer in custody and have no other remedy available.
- Habeas corpus applies to people currently in custody alleging a constitutional violation, like ineffective assistance under the Sixth Amendment.
- Penal Code § 1203.4 offers a different kind of relief: after successfully completing probation, a defendant can ask the court to withdraw the plea and dismiss the case entirely. This requires notice to the prosecuting attorney, and it doesn’t erase everything. Some licensing boards and public office disclosure requirements still require you to report the underlying conviction even after § 1203.4 relief. If your case involved a DUI, this dovetails directly with DUI expungement in California.
Each of these remedies has its own filing procedure, evidentiary standard, and timeline, and none of them move as fast as a straightforward § 1018 motion filed before sentencing.
Practical steps to take right now
If you’re considering withdrawal, speed and documentation decide most of what happens next.
- Request your plea transcript immediately, don’t wait for a court date to prompt you.
- Gather every text, email, or letter from your prior attorney related to the plea decision.
- Write down your own account of what happened while it’s still fresh, even before you retain new counsel.
- If immigration status is a factor, start collecting records related to your immigration history now.
- If your prior attorney’s performance is part of the claim, retain new counsel right away rather than trying to file it yourself.
At Grace Legal Group, this is where a two-attorney case structure earns its keep: one attorney can focus on the motion’s legal theory while the second builds out the mitigation packet and coordinates any expert declarations needed, whether that’s an immigration specialist explaining deportation exposure or a mental health professional addressing duress. Former law enforcement professionals on staff also review the arrest and interrogation record for procedural defects that often get missed on a first read.
Pro Tip: Don’t wait for a court date to start gathering records. By the time a hearing is scheduled, evidence has often gone stale, memories have faded, and witnesses have moved.
What are the real odds of winning a plea withdrawal motion?
Judges are genuinely torn between protecting finality and correcting real unfairness, and the motions that win are the ones that make that choice easy for them. A thin declaration with no transcript rarely survives. A motion built on a documented immigration advisal failure, filed inside the six-month window, with new counsel attached, gives a judge a defensible reason to grant it. File fast, document everything, and don’t try to handle a claim against your own attorney’s performance alone.
— Jake
How Grace Legal Group approaches a plea withdrawal case
If you’re weighing whether to file a motion to withdraw your plea, the clock and the paperwork both work against you if you wait. Grace Legal Group is built for exactly this kind of time-sensitive, evidence-heavy motion: two attorneys on every case, a mitigation packet built to reframe how the prosecution sees your circumstances, and former law enforcement professionals who know what a defective advisal or a coerced plea actually looks like in the record.

A first conversation with our office starts with a case evaluation covering your plea transcript, timing window, and the strength of your grounds. Bring anything you have: correspondence with prior counsel, court paperwork, immigration records if relevant. From there we handle motion drafting, expert coordination, and courtroom representation through the hearing. If your case involves broader defense strategy questions beyond the plea itself, our page on defenses available in criminal cases walks through how we build a case theory from the ground up. Reach out for a case evaluation before your filing window closes.
Statutes and forms worth bookmarking
Review Penal Code § 1018, § 1203.4, § 1016.5, § 1473.7, and Judicial Council form CR-187 directly, and pull your plea transcript from the court before filing anything.
This article is general information, not a substitute for advice from a qualified lawyer. Consult a qualified legal professional about your own circumstances before acting on anything here.
Sources
- California Code, Penal Code – PEN § 1018 | FindLaw
- California Code, PEN 1203.4
- CR-187 Motion to Vacate Conviction or Sentence