Share via

Cannot delete Azure Static Web App — “A create or update operation is currently in progress” (409 Conflict)

Kevin Gatimu 0 Reputation points MVP
2026-03-07T23:16:25.8366667+00:00

I’m trying to delete an Azure Static Web App using both the Azure CLI and the Portal, but it always fails with a conflict error:

Cannot update Static Web App:  
A create or update operation is currently in progress for the static web app <app-name>.

I have already:

  • Verified there are no pending ARM deployments in the resource group (all show Succeeded).
  • Checked that there are no extra environments besides default.
  • Tried Azure CLI with and without --no-wait.
  • Tried PowerShell delete cmdlets.
  • Ensured there are no resource locks applied.

Example CLI command used:

az staticwebapp delete \
  --name <app-name> \
  --resource-group <resource-group> \
  --yes

And this is the error returned:

Operation returned an invalid status ‘Conflict’
Cannot update Static Web App: A create or update operation is currently in progress …

Even with --no-wait, it fails immediately.

There are no active deployments or environments, and the app doesn’t have any custom domains attached.

Things I’ve already tried:

  • Waiting ~30+ minutes and retrying (sometimes longer)
  • Checking Activity Log for pending operations
  • Trying deletion via REST API
  • PowerShell (Remove-AzStaticWebApp)
  • Confirmed resource locks are not present
Azure Static Web Apps
Azure Static Web Apps

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

0 comments No comments

2 answers

Sort by: Most helpful
  1. Divyesh Govaerdhanan 10,855 Reputation points Volunteer Moderator
    2026-03-08T00:19:32.3266667+00:00

    Hi Kevin Gatimu,

    Welcome to Microsoft Q&A,

    Even if no deployments are actively running, a linked GitHub Actions or Azure DevOps workflow can hold an internal lock on the resource. Before deleting, try disconnecting the deployment source:

    az staticwebapp disconnect \
      --name <app-name> \
      --resource-group <resource-group>
    

    Wait ~5 minutes, then retry the delete. Ensure the workflow YAML file in GitHub is also deleted from the repository to cleanly remove the connection.

    Please Upvote and accept the answer if it helps!!

    1 person found this answer helpful.

  2. Kevin Gatimu 0 Reputation points MVP
    2026-03-09T10:11:54.05+00:00

    Thanks Divyesh Govaerdhanan,
    This helps to resolve the issue.

    0 comments No comments

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.