mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
// 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
|
|
|
|
You can delete the `LVMCluster` custom resource (CR) using the OpenShift CLI (`oc`).
|
|
|
|
.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.
|
|
----
|