Hope you are having a great day!
To safely remove one of the static web apps (in this case, "ashy ocean") and associated resources, you can follow these steps:
- Delete Workflow in GitHub: In your GitHub repository, if you have a workflow defined for the "ashy ocean" static web app, you should delete that workflow file. Basically a yaml file of ashy ocean under workflows
- Delete Static Web App in Azure: Follow these steps to delete the corresponding static web app in Azure:
- Azure Portal:
- Go to the Azure portal (**[https://portal.azure.com/](https://portal.azure.com/)**). - In the left-hand menu, click on "Resource groups" and select the appropriate resource group containing your static web apps. - Find and click on the "ashy ocean" static web app. - In the web app's overview page, scroll down to the "Settings" section and click on "Delete." - Follow the prompts to confirm the deletion.
- Azure Portal:
- If you've configured custom domains or DNS records for this static web app in Azure and you want to remove those custom domains or DNS records, you can follow these steps:
- Remove Custom Domains from Azure Static Web App:
- Go to the Azure portal (**[https://portal.azure.com/](https://portal.azure.com/)**). - Find and click on the static web app that you want to remove the custom domains from. - In the left-hand menu, under the "Settings" section, click on "Custom domains". - You will see a list of custom domains associated with the static web app. - Select the custom domain you want to remove and click the "Delete" button (trash can icon) for that domain. - Confirm the deletion.
- Remove DNS Records from Azure DNS(Public) Zone (If Applicable): If you've set up DNS records directly in Azure DNS for the custom domain, you'll need to remove those records:
- Go to the Azure portal (**[https://portal.azure.com/](https://portal.azure.com/)**). - Search for and select "DNS zones" in the search bar. - Select the DNS zone associated with the custom domain you want to remove. - In the left-hand menu, click on "DNS records sets". - Find and select the DNS record set you want to remove (e.g., A record, CNAME record). - In the record set's overview page, click the "Delete" button (trash can icon). - Confirm the deletion.
- Remove DNS Records from Azure DNS(Public) Zone (If Applicable): If you've set up DNS records directly in Azure DNS for the custom domain, you'll need to remove those records:
- Remove Custom Domains from Azure Static Web App:
By performing all these steps you can make sure that static web app gets successfully deleted from azure along with its dependencies and also from Git