Skip to content

Commit 55d9ca3

Browse files
Merge pull request #297349 from RoseHJM/ade-force-delete-cli-update
ADE - force delete cli update
2 parents 09c7d67 + d38ccf3 commit 55d9ca3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 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,17 @@ 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 from the CLI, follow these steps:
111111
1. Open the CLI.
112112
1. Run the following command to forcibly delete the environment:
113113

114114
```bash
115-
az devcenter environment delete --name <environment-name> --dev-center <dev-center-name> --project-name <project-name> --force
115+
az devcenter dev environment delete --name <environment-name> --dev-center <dev-center-name> --project-name <project-name> --force
116116
```
117117

118118
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.
119119

120-
For more information about the `az devcenter environment delete` command, see [az devcenter environment delete](/cli/azure/devcenter/dev/environment).
120+
For more information about the `az devcenter dev environment delete` command, see [az devcenter dev environment delete](/cli/azure/devcenter/dev/environment).
121121

122122
> [!IMPORTANT]
123123
> The force delete feature is currently in PREVIEW.

0 commit comments

Comments
 (0)