|
| 1 | +# Deleting Resources After a Failed Deployment in Azure Portal |
| 2 | + |
| 3 | +If your deployment fails and you need to clean up the resources manually, follow these steps in the Azure Portal. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## **1. Navigate to the Azure Portal** |
| 8 | +1. Open [Azure Portal](https://portal.azure.com/). |
| 9 | +2. Sign in with your Azure account. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## **2. Find the Resource Group** |
| 14 | +1. In the search bar at the top, type **"Resource groups"** and select it. |
| 15 | +2. Locate the **resource group** associated with the failed deployment. |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## **3. Delete the Resource Group** |
| 24 | +1. Click on the **resource group name** to open it. |
| 25 | +2. Click the **Delete resource group** button at the top. |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +3. Type the resource group name in the confirmation box and click **Delete**. |
| 30 | + |
| 31 | +📌 **Note:** Deleting a resource group will remove all resources inside it. |
| 32 | + |
| 33 | +--- |
| 34 | + |
| 35 | +## **4. Delete Individual Resources (If Needed)** |
| 36 | +If you don’t want to delete the entire resource group, follow these steps: |
| 37 | + |
| 38 | +1. Open **Azure Portal** and go to the **Resource groups** section. |
| 39 | +2. Click on the specific **resource group**. |
| 40 | +3. Select the **resource** you want to delete (e.g., App Service, Storage Account). |
| 41 | +4. Click **Delete** at the top. |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## **5. Verify Deletion** |
| 48 | +- After a few minutes, refresh the **Resource groups** page. |
| 49 | +- Ensure the deleted resource or group no longer appears. |
| 50 | + |
| 51 | +📌 **Tip:** If a resource fails to delete, check if it's **locked** under the **Locks** section and remove the lock. |
0 commit comments