1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/lvms-deleting-volume-snapshots.adoc
2024-03-18 11:20:30 +00:00

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-volume-snapshots_{context}"]
= Deleting volume snapshots
You can delete the volume snapshots of the persistent volume claims (PVCs).
[IMPORTANT]
====
When you delete a persistent volume claim (PVC), {lvms} deletes only the PVC, but not the snapshots of the PVC.
====
.Prerequisites
* You have access to {product-title} as a user with `cluster-admin` permissions.
* You have ensured that the volume snpashot that you want to delete is not in use.
.Procedure
. Log in to the OpenShift CLI (`oc`).
. Delete the volume snapshot by running the following command:
+
[source,terminal]
----
$ oc delete volumesnapshot <volume_snapshot_name> -n <namespace>
----
.Verification
* To verify that the volume snapshot is deleted, run the following command:
+
[source, terminal]
----
$ oc get volumesnapshot -n <namespace>
----
+
The deleted volume snapshot must not be present in the output of this command.