// Module included in the following assemblies:
//
// * observability/logging/cluster-logging-uninstall.adoc

:_mod-docs-content-type: PROCEDURE
[id="uninstall-loki-operator_{context}"]
= Uninstalling Loki

.Prerequisites

* You have administrator permissions.
* You have access to the {product-title} web console with `cluster-admin` privleges.
* If you have not already removed the {clo} and related resources, you have removed references to LokiStack from the `ClusterLogging` custom resource.

.Procedure

. Go to the *Administration* -> *Custom Resource Definitions* page, and click *LokiStack*.

. On the *Custom Resource Definition Details* page, click *Instances*.

. Click the Options menu {kebab} next to the instance, and then click *Delete LokiStack*.

. Go to the *Administration* -> *Custom Resource Definitions* page.

. Click the Options menu {kebab} next to *LokiStack*, and select *Delete Custom Resource Definition*.

. Delete the object storage secret.

. Go to the *Ecosystem* -> *Installed Operators* page.

. Click the Options menu {kebab} next to the {loki-op}, and then click *Uninstall Operator*.

. Optional: Delete the `openshift-operators-redhat` project.
+
[IMPORTANT]
====
Do not delete the `openshift-operators-redhat` project if other global Operators are installed in this namespace.
====

.. Go to the *Home* -> *Projects* page.
.. Click the Options menu {kebab} next to the *openshift-operators-redhat* project, and then click *Delete Project*.
.. Confirm the deletion by typing `openshift-operators-redhat` in the dialog box, and then click *Delete*.
