Skip to content

Commit 1af1ad7

Browse files
Merge pull request #211921 from JnHs/jh-arck8-qscu
add force deletion command
2 parents ffda758 + 3040e99 commit 1af1ad7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/azure-arc/kubernetes/quickstart-connect-cluster.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,14 @@ You can delete the Azure Arc-enabled Kubernetes resource, any associated configu
412412
az connectedk8s delete --name AzureArcTest1 --resource-group AzureArcTest
413413
```
414414

415+
If the deletion process hangs, use the following command to force deletion (adding `-y` if you want to bypass the confirmation prompt):
416+
417+
```azurecli
418+
az connectedk8s delete -g AzureArcTest1 -n AzureArcTest --force
419+
```
420+
421+
This command can also be used if you experience issues when creating a new cluster deployment (due to previously created resources not being completely removed).
422+
415423
>[!NOTE]
416424
> Deleting the Azure Arc-enabled Kubernetes resource using the Azure portal removes any associated configuration resources, but *does not* remove any agents running on the cluster. Best practice is to delete the Azure Arc-enabled Kubernetes resource using `az connectedk8s delete` rather than deleting the resource in the Azure portal.
417425

0 commit comments

Comments
 (0)