Custom domain stuck in "Deleting" status on Static Web App (Standard plan) — cannot remove via Portal, CLI, or ARM REST; second, unrelated domain hit the identical bug

Tim Holmes 20 Reputation points
2026-08-12T09:44:22.0233333+00:00

I have tried to add custom domains via the Portal. CNAME was confirmed resolving correctly beforehand. It failed with "An unknown error has occurred while adding your custom domain." and got left attached with status: "Deleting". No CAA record involved — ruled that out, and we've added custom domains to this same root domain successfully before on other apps.

Tried to clear it three ways, none worked — record is unchanged in hostname list after each:

Portal delete (spun indefinitely)

az staticwebapp hostname delete (CLI returns Operation returned an invalid status 'OK')

Raw ARM DELETE call (no error, no effect)

To rule out a domain-specific fluke, tried a second, previously-untouched subdomain on the same app. Same generic error. It landed in status: "Failed" (clean terminal state) — but attempting to delete that one flipped it into the same "Deleting" limbo too.

Current state: both custom domains are stuck in Deleting on the static web app, unremovable via any client-side path. Looks like a corrupted backend state on this resource, not a DNS or domain-specific issue.

Similar to this resolved thread — same symptom pattern, though that was an apex domain on http-token validation; ours is a subdomain on CNAME. The --environment-name retry suggested there doesn't apply here — not a valid parameter on az staticwebapp hostname delete in CLI 2.88.0.

Could someone force-clear these two stuck records so a custom domain can be re-added? Also just upgraded to paid support to open a ticket but couldn't get one submitted — posting here as a fallback.

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.

0 comments No comments

Answer accepted by question author
Aditya N 3,810 Reputation points Microsoft External Staff Moderator
2026-08-12T10:59:16.8066667+00:00

Hello @Tim Holmes

Please retry the operation and let us know whether everything is working as expected.

If you’re still experiencing any issues, just reply with an update and any relevant details. We’ll be happy to continue assisting you and investigate further if needed.

We look forward to hearing back from you.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Tim Holmes 20 Reputation points
    2026-08-14T07:41:26.4766667+00:00

    Hi Aditya

    Problem resolved, thank you.

    I was able to delete both custom domains and succesfully validated now.

    Thanks for your help.

    Tim

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.