Sometimes, but sentencing does not create one general plea-withdrawal motion. The first question is whether the court entered judgment or granted probation while suspending its entry. California Penal Code section 1018 allows a request for good cause before judgment, or within six months after a probation order if entry of judgment was suspended. Once judgment has been entered, a challenge generally needs a different legal ground and procedure. A disappointing sentence alone does not undo a plea. (Penal Code § 1018)

Get the plea and sentencing minute orders before deciding which rule applies. “I was sentenced” does not tell you whether the court entered judgment, suspended its entry, or made a later order that may be separately reviewed. The date of judgment also matters if an appeal remains possible.

Match the problem to the available procedure

What the record shows Question to take to counsel
No judgment yet, or probation granted with entry of judgment suspended less than six months ago Is there good cause for a timely § 1018 plea-withdrawal request? The six-month exception requires suspended entry of judgment, not merely probation or a recent sentencing date.
Judgment entered recently Is a direct appeal available, and what issue would it raise? An appeal attacking the validity of a guilty or no-contest plea generally requires a sworn statement and a trial-court certificate of probable cause under § 1237.5 and rule 8.304(b). The ordinary felony notice deadline is 60 days after judgment or an appealable order under rule 8.308(a); counsel should check the applicable case and order immediately.
No longer in criminal custody; a plea or sentence carries actual or potential adverse immigration consequences Does a prejudicial error fit § 1473.7(a)(1)? This is a motion to vacate a conviction or sentence, with proof requirements and a diligence rule after specified immigration notices. It is not available simply because the person regrets the plea.
The court failed to give the required immigration warning before the plea Does § 1016.5 apply to the plea date and possible immigration consequence, and can prejudice be shown? This judicial-warning route is separate from a claim that defense counsel gave wrong advice.
Still in criminal custody or otherwise restrained, and alleging a valid constitutional or statutory ground Is habeas corpus under § 1473 the appropriate way to present the actual error and supporting evidence? Custody alone does not establish that a plea was invalid.

These routes can overlap, and their filing rules are different. An attorney needs the actual order, grounds, and custody status to decide what to file. The separate before-judgment plea guide explains the § 1018 good-cause request in more detail.

Immigration claims turn on the error and the record

Section 1473.7(a)(1) applies when a person is no longer in criminal custody and prejudicial error damaged the ability to understand, defend against, or knowingly accept actual or potential adverse immigration consequences. The person must show the ground by a preponderance of the evidence and show that the conviction or sentence causes or could cause a specified adverse immigration result. An immigration motion is generally deemed timely while the person is out of criminal custody, but the court may find it untimely for lack of reasonable diligence after the later of specified immigration notice or notice of a final removal order. If the court grants a qualifying motion to vacate a conviction or sentence entered on a guilty or no-contest plea, it must allow withdrawal of that plea; the charge is not automatically dismissed. (Penal Code § 1473.7(a), (b), (f))

A different problem arises if the court omitted the immigration advisement required by § 1016.5 before accepting a plea. For a plea accepted after January 1, 1978, the statute provides a motion to vacate judgment and permit withdrawal if the applicable warning was missing and the conviction may have a specified immigration consequence. An absent record creates a presumption that the warning was not given, but the California Supreme Court requires a showing of prejudice; relief is not automatic. The statute’s 2026 change to the exact warning does not, by itself, invalidate a plea accepted before January 1, 2026. (Penal Code § 1016.5(b), (c), (e); People v. Superior Court (Zamudio).)

If an interpreter changed a material warning or term, the interpreter-error guide addresses that narrower evidence problem. If an old transcript is missing, this records guide explains what other plea records may survive. Neither problem alone proves that the plea must be set aside.

Record relief can use the word “withdraw” for a different reason

After eligible probation, § 1203.4 can permit a guilty or no-contest plea to be withdrawn, a not-guilty plea entered, and the accusation dismissed. That is conditional record relief, not a court finding that the original plea was legally invalid. The statute preserves significant consequences, and a California dismissal does not automatically erase federal immigration effects. The record-relief and immigration guide addresses that distinction. An older completed drug-diversion plea may instead raise the narrower § 1203.43 question.

Bring counsel the plea form, any immigration advisement, hearing transcript or recording, judgment and probation orders, sentencing date, notices of appeal, and any immigration notices. Note whether the complaint concerns the plea decision, a broken plea term, the court’s warning, counsel’s advice, or later record relief; each points to a different record and remedy. If the judge changed a previously approved specified plea at sentencing, that judicial-approval issue has a separate rule.

The Law Offices of David S. Chesley can review a California plea and sentencing record to identify the applicable next step and deadline. Call (800) 755-5174.