# Can't Remove Management Clusters in UI

**URL:** <https://forums.suse.com/t/cant-remove-management-clusters-in-ui/35941>\
**Category:** SUSE Rancher Prime\
**Created:** [October 22, 2021, 12:24pm UTC](https://forums.suse.com/t/cant-remove-management-clusters-in-ui/35941 "2021-10-22T12:24:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mclarke19](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mclarke19](https://forums.suse.com/u/mclarke19)\
**Post date:** [October 22, 2021, 12:24pm UTC](https://forums.suse.com/t/cant-remove-management-clusters-in-ui/35941/1 "2021-10-22T12:24:26Z")

</div>

I have 3 active clusters registerd in Rancher but there are 5 clusters listed under ‘Cluster Management → Advanced → Mgmt Clusters’. The 2 that I can’t delete are in the following states:

`Unavailable: Failed to communicate with the API server during namespace check: Get "https://10.96.0.1:443/api/v1/namespaces/kube-system?timeout=45s": context canceled`

Whenever I try to select one of them and the delete it I get the following:

`{"type":"error","links":{},"code":"PermissionDenied","message","Method DELETE not supported","status":403}`

This is more of an annoyance b/c there are clusters that are showing on my Home screen in non-active states that don’t exist and shouldn’t be there.

Rancher 2.6.2

---

<div class="post-metadata">

**Author:** ![Maturing8722](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@Maturing8722](https://forums.suse.com/u/Maturing8722)\
**Post date:** [August 5, 2022, 1:40pm UTC](https://forums.suse.com/t/cant-remove-management-clusters-in-ui/35941/2 "2022-08-05T13:40:27Z")

</div>

Did you ever find a resolution for this? I’m having the same problem.

---

<div class="post-metadata">

**Author:** ![mclarke19](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mclarke19](https://forums.suse.com/u/mclarke19)\
**Post date:** [August 5, 2022, 1:54pm UTC](https://forums.suse.com/t/cant-remove-management-clusters-in-ui/35941/3 "2022-08-05T13:54:02Z")

</div>

Unfortunately I did not. The only way that I found to remove them was delete the backing Rancher data directory and then re-add all clusters.

---

<div class="post-metadata">

**Author:** ![Maturing8722](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@Maturing8722](https://forums.suse.com/u/Maturing8722)\
**Post date:** [August 5, 2022, 3:45pm UTC](https://forums.suse.com/t/cant-remove-management-clusters-in-ui/35941/4 "2022-08-05T15:45:49Z")

</div>

I’ve found this that worked since posting 🙂

```auto
kubectl get clusters.management.cattle.io # find the cluster you want to delete 
export CLUSTERID="c-xxxxxxxxx" # 
kubectl patch clusters.management.cattle.io $CLUSTERID -p '{"metadata":{"finalizers":[]}}' --type=merge

```
