Skip to content

Commit 45a6704

Browse files
committed
add force deletion command
1 parent a9e35fb commit 45a6704

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+
In some cases, the deletion process may not complete. If this happens, use the following command to force deletion (to bypass the confirmation prompt, add '-y'):
416+
417+
```azurecli
418+
az connectedk8s delete -g <> -n <> --force
419+
```
420+
421+
If you experience issues when creating a new cluster deployment, running this command may help resolve the problem by completely removing any previously-created resources.
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)