# Clusters stuck in Removing Phase

**URL:** https://forums.suse.com/t/clusters-stuck-in-removing-phase/40940
**Category:** SUSE Rancher Prime
**Created:** [June 16, 2023, 7:21am UTC](https://forums.suse.com/t/clusters-stuck-in-removing-phase/40940 "2023-06-16T07:21:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wioxjk](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/wioxjk/32/9439_2.png) [@wioxjk](https://forums.suse.com/u/wioxjk)
#### Post date: [June 16, 2023, 7:21am UTC](https://forums.suse.com/t/clusters-stuck-in-removing-phase/40940/1 "2023-06-16T07:21:39Z")

</div>

Hi,

I have successfully deployed and purged several Kubernetes clusters with Rancher and VMWare vSphere.  
However, there is some clusters that is stuck in “Removing” (one says Updating, but it is Removing).  
How can I purge these clusters from Rancher?

The nodes was already deleted from VMWare, so I just need to remove the clusters from Rancher itself.

---

<div class="post-metadata">

### Author: ![rancheruser33](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@rancheruser33](https://forums.suse.com/u/rancheruser33)
#### Post date: [July 24, 2023, 6:13am UTC](https://forums.suse.com/t/clusters-stuck-in-removing-phase/40940/2 "2023-07-24T06:13:10Z")

</div>

try

Here’s how to manually delete a cluster. Thanks Brad.

kubectl get [clusters.management.cattle.io](http://clusters.management.cattle.io) # find the cluster you want to delete  
export CLUSTERID=“c-xxxxxxxxx” #  
kubectl patch [clusters.management.cattle.io](http://clusters.management.cattle.io) $CLUSTERID -p ‘{“metadata”:{“finalizers”:}}’ --type=merge  
kubectl delete [clusters.management.cattle.io](http://clusters.management.cattle.io) $CLUSTERID  
[[2.6] Unable to remove cluster · Issue #34650 · rancher/rancher · GitHub](https://github.com/rancher/rancher/issues/34650#issuecomment-956555419)

---

<div class="post-metadata">

### Author: ![wioxjk](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/wioxjk/32/9439_2.png) [@wioxjk](https://forums.suse.com/u/wioxjk)
#### Post date: [August 18, 2023, 6:44am UTC](https://forums.suse.com/t/clusters-stuck-in-removing-phase/40940/3 "2023-08-18T06:44:18Z")

</div>

Thanks,  
I have not been able to try it because I just purged rancher entirely and reinstalled it.

---

<div class="post-metadata">

### Author: ![Suleyman\_Tarik\_Simse](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/suleyman_tarik_simse/32/10420_2.png) [@Suleyman\_Tarik\_Simse](https://forums.suse.com/u/Suleyman_Tarik_Simse)
#### Post date: [July 8, 2024, 9:05am UTC](https://forums.suse.com/t/clusters-stuck-in-removing-phase/40940/4 "2024-07-08T09:05:33Z")

</div>

> [@wioxjk](#):
>
> purged

İf anyone sees this. Solution is here

> **[How to recreate rancher-webhook-tls secret if incorrectly...](https://www.suse.com/support/kb/doc/?id=000020699)**

---

<div class="post-metadata">

### Author: ![elowenblake](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/elowenblake/32/11347_2.png) [@elowenblake](https://forums.suse.com/u/elowenblake)
#### Post date: [July 10, 2024, 8:55am UTC](https://forums.suse.com/t/clusters-stuck-in-removing-phase/40940/5 "2024-07-10T08:55:44Z")

</div>

Hello,  
I think you first log in to the Rancher dashboard and attempt a force delete. If that fails, edit the cluster’s YAML configuration to remove references manually. You can also use the Rancher API to send a delete request directly or utilize the Rancher CLI for removal.
