You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement az staticwebapp environment delete #19433
Is your feature request related to a problem? Please describe.
At the moment there seems to be no way to clean up Staging Environments via the CLI.
Describe the solution you'd like
Running something like az staticwebapp environment delete --name swa-name --env environment-name
Describe alternatives you've considered
Deleting from the Portal seems to be supported. But this is much harder to automate. In some cases (see context below) even this may not work and will likely require redeploying the whole resource.
Additional context
I created an SWA resource with Other source of deployment.
Performed a manual deployment using mcr.microsoft.com/appsvc/staticappsclient directly:
Activity
yonzhan commentedon Sep 2, 2021
route to service team
bmiddha commentedon Sep 10, 2021
related pr: #19514
RakeshMohanMSFT commentedon Apr 21, 2022
This is implemented. Closing the issue.