// Module included in the following assemblies:
//
// * nodes/scheduling/descheduler/nodes-descheduler-uninstalling.adoc

:_mod-docs-content-type: PROCEDURE
[id="nodes-descheduler-uninstalling_{context}"]
= Uninstalling the descheduler

[role="_abstract"]
If you no longer need the descheduler in your cluster, you can remove it by deleting the descheduler instance and uninstalling the {descheduler-operator}. You can also delete the `KubeDescheduler` CRD and `openshift-kube-descheduler-operator` namespace.

.Prerequisites

ifndef::openshift-rosa,openshift-dedicated[]
* You are logged in to {product-title} as a user with the `cluster-admin` role.
endif::openshift-rosa,openshift-dedicated[]
ifdef::openshift-rosa,openshift-dedicated[]
* You are logged in to {product-title} as a user with the `dedicated-admin` role.
endif::openshift-rosa,openshift-dedicated[]
* Access to the {product-title} web console.

.Procedure

. Log in to the {product-title} web console.
. Delete the descheduler instance.
.. From the *Ecosystem* -> *Installed Operators* page, click *{descheduler-operator}*.
.. Select the *Kube Descheduler* tab.
.. Click the Options menu {kebab} next to the *cluster* entry and select *Delete KubeDescheduler*.
.. In the confirmation dialog, click *Delete*.
. Uninstall the {descheduler-operator}.
.. Navigate to *Ecosystem* -> *Installed Operators*.
.. Click the Options menu {kebab} next to the *{descheduler-operator}* entry and select *Uninstall Operator*.
.. In the confirmation dialog, click *Uninstall*.
. Delete the `openshift-kube-descheduler-operator` namespace.
.. Navigate to *Administration* -> *Namespaces*.
.. Enter `openshift-kube-descheduler-operator` into the filter box.
.. Click the Options menu {kebab} next to the *openshift-kube-descheduler-operator* entry and select *Delete Namespace*.
.. In the confirmation dialog, enter `openshift-kube-descheduler-operator` and click *Delete*.
. Delete the `KubeDescheduler` CRD.
.. Navigate to *Administration* -> *Custom Resource Definitions*.
.. Enter `KubeDescheduler` into the filter box.
.. Click the Options menu {kebab} next to the *KubeDescheduler* entry and select *Delete CustomResourceDefinition*.
.. In the confirmation dialog, click *Delete*.
