Safely Delete Azure Static Web app from Portal and Github

Ziggy Zulueta 495 Reputation points MVP
2023-08-25T03:25:09.34+00:00

i have two static web apps and my github is building two of them every time I modify code in github as seen below:

Screenshot 2023-08-25 112058

How Do i safely remove one of them? I want to delete the ashy ocean?

I intend to just delete the workflow in github and the static web app in Azure but I believe there may be other areas I should so to delete the web app safely

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

Accepted answer
  1. Deepanshukatara-6769 16,405 Reputation points Moderator
    2023-08-25T05:57:25.0766667+00:00

    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:

    1. 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
    2. 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.
        
    3. 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:
      1. 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.
        
        1. 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.
          

    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


0 additional answers

Sort by: Most helpful

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.