Looks like it's finally deleted after multiple attempts. It really shouldnt be this hard to delete a resource though!
Trying to delete an empty static web app either fails or is still running after 2 hours
I've been trying unsuccessfully to delete a static web app that is empty (no published code) for the last 2 hours and have tried the following methods:
- az staticwebapp delete
- Remove-AzStaticWebApp
- Removing the static web app from the Azure portal
- Removing the resource group entirely using az group delete --name
- Removing the resource group from the Azure portal.
Each instance either times out and fails, or is still continuing to run, for what appears to be an indefinite amount of time.
Anyone have a way to just remove the resources?
3 answers
Sort by: Most helpful
-
-
Grmacjon-MSFT 18,806 Reputation points
2022-08-31T19:49:00.223+00:00 Usually removing the static web app via the Azure portal should work just fine. We are sorry to hear you had a difficult time deleting your static webapp. Thanks for letting us know the issue is now resolved.
Best,
Grace -
Paul Smith 30 Reputation points
2023-07-25T21:06:04.7533333+00:00 Hi,
I am also have a delete issue for a static web app.
Somehow I have two static web apps of the same name, one in one resource group, one in another... both resource groups have the same name too, but under different subscriptions....
so i have
swa123 > rg123 > sub123
swa123 > rg123 > subabc
This should not even be possible?!?
I was deploying from the swa cli, for some reason it deplyed to a region i didn't want (thought it asked me last time) so i delete the RG... that cleaned up the swa and all looked good in teh world. I re deployed again through swa cli this time speciying the sub and tenant id and that went through ok.
Now i have two copies of the rg and the swa with matching names and it appears each one is locking the other out so im unable to delete anything, not either of the swa's or either of the rg's. I would delet ethe subscription but we are using for other stuff.
I have tried portal, az cli and swa cli too, nothing is working to delete either the swa's or the rg's (as the swa's are stuck fast)
any ideas?
thanks
Paul