Skip to content

Commit a53346a

Browse files
author
RoseHJM
committed
ADE - force delete portal version
1 parent 034bb17 commit a53346a

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

articles/deployment-environments/how-to-manage-environments.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: rosemalcolm
77
ms.service: azure-deployment-environments
88
ms.custom: devx-track-azurecli, build-2023, ignite-2024
99
ms.topic: how-to
10-
ms.date: 11/06/2024
10+
ms.date: 03/31/2025
1111
# 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.
1212
---
1313

@@ -107,17 +107,29 @@ An attempt to delete a deployment environment might fail due to issues like the
107107

108108
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.
109109

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:
111123
1. Open the CLI.
112124
1. Run the following command to forcibly delete the environment:
113125

114126
```bash
115-
az devcenter environment delete --name <environment-name> --dev-center <dev-center-name> --project-name <project-name> --force
127+
az devcenter dev environment delete --name <environment-name> --dev-center <dev-center-name> --project-name <project-name> --force
116128
```
117129

118130
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.
119131

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).
121133

122134
> [!IMPORTANT]
123135
> The force delete feature is currently in PREVIEW.
11.2 KB
Loading
33.5 KB
Loading

0 commit comments

Comments
 (0)