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
# customer intent: As a developer, I want to learn how to manage my environments in Azure Deployment Environments so that I can create, redeploy, and delete my environments as needed.
12
12
---
13
13
@@ -107,17 +107,29 @@ An attempt to delete a deployment environment might fail due to issues like the
107
107
108
108
If the deletion fails, you can forcibly delete the environment. Force delete deletes the environment, its deployment resource group, and all resources in the deployment resource group. Any resources created outside the resource group are orphaned; force delete doesn't delete them.
109
109
110
-
To forcibly delete an environment, follow these steps:
110
+
To forcibly delete an environment through the developer portal, follow these steps:
111
+
1. Sign in to the [developer portal](https://devportal.microsoft.com).
112
+
1. On the environment you want to delete, select the options menu next to the environment name, then choose **Delete**.
113
+
114
+
:::image type="content" source="media/how-to-manage-environments/environment-force-delete.png" alt-text="Screenshot showing an environment tile with the options menu expanded and the Delete option selected." lightbox="media/how-to-manage-environments/environment-force-delete.png":::
115
+
116
+
1. In the confirmation message, select **Force delete**.
117
+
118
+
:::image type="content" source="media/how-to-manage-environments/environment-confirm-force-delete.png" alt-text="Screenshot showing a confirm force deletion message with Force delete highlighted." lightbox="media/how-to-manage-environments/environment-confirm-force-delete.png":::
119
+
120
+
121
+
122
+
To forcibly delete an environment fron the CLI, follow these steps:
111
123
1. Open the CLI.
112
124
1. Run the following command to forcibly delete the environment:
az devcenter dev environment delete --name <environment-name> --dev-center <dev-center-name> --project-name <project-name> --force
116
128
```
117
129
118
130
Replace `<environment-name>` with the name of the environment you want to delete, `<dev-center-name>` with the name of your dev center, and `<project-name>` with the name of the project that the environment belongs to.
119
131
120
-
For more information about the `az devcenter environment delete` command, see [az devcenter environment delete](/cli/azure/devcenter/dev/environment).
132
+
For more information about the `az devcenter dev environment delete` command, see [az devcenter dev environment delete](/cli/azure/devcenter/dev/environment).
121
133
122
134
> [!IMPORTANT]
123
135
> The force delete feature is currently in PREVIEW.
0 commit comments