How to delete a Static Web App?

Arslan 0 Reputation points
2025-03-10T17:00:21.4966667+00:00

I'm having trouble deleting a static web app, when i try to delete it says that I don't have the authorization, but that's not true cause I am the owner of the Resource Group in which I have created the Static Web App.

This is the error description (i've changed the ids with 'x' placeholder)

Delete Operation

Failed to delete Static Web App my-test with error: The Client 'x' with object id 'x' does not have the Authorization to perform action 'Microsoft.Web/locations/operationResults/read' over scope 'x' or the scope is invalid. If access was recently granted, please refresh your credentials.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,097 questions
{count} votes

1 answer

Sort by: Most helpful
  1. hossein jalilian 10,100 Reputation points
    2025-03-10T17:09:42.8933333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    You can try the following methods:

    • Run the following command in your terminal:
        az staticwebapp delete --resource-group <resourcegroupname> --name <staticwebappName> --yes
        
      
    • Execute the following cmdlet:
        Remove-AzStaticWebapp -ResourceGroupName <resourcegroupname> -Name <staticwebappName>
        
      
    • Using Azure Portal:

    Go to the Azure portal, navigate to your resource group containing the static web app then find and click on the static web app you want to delete then in the overview page, scroll down to the Settings section and click on Delete.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

Your answer

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