// Module included in the following assemblies:
//
// storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc

:_mod-docs-content-type: PROCEDURE
[id="lvms-deleting-lvmcluster-using-cli_{context}"]
= Deleting an LVMCluster CR by using the CLI

[role="_abstract"]
You can delete an `LVMCluster` custom resource (CR) when decommissioning {lvms} or reconfiguring storage by using the {oc-first}.

.Prerequisites
* You have access to {product-title} as a user with `cluster-admin` permissions.
* You have deleted the persistent volume claims (PVCs), volume snapshots, and volume clones provisioned by {lvms}. You have also deleted the applications that are using these resources.

.Procedure
. Log in to the OpenShift CLI (`oc`).
. Delete the `LVMCluster` CR by running the following command:
+
[source,terminal]
----
$ oc delete lvmcluster <lvm_cluster_name> -n <namespace>
----

.Verification
* To verify that the `LVMCluster` CR has been deleted, run the following command:
+
[source,terminal]
----
$ oc get lvmcluster -n <namespace>
----
+
.Example output
[source,terminal]
----
No resources found in openshift-lvm-storage namespace.
----
