1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/virt-deleting-dvs.adoc
Lavanya a152f3d640 This is a combination of 3 commits on Aug 12.
source and output formatting

add source terminal tags

source,terminal tags

peer review
2020-08-17 17:05:59 +00:00

30 lines
661 B
Plaintext

// Module included in the following assemblies:
//
// * virt/virtual_machines/virt-deleting-datavolumes.adoc
[id="virt-deleting-dvs_{context}"]
= Deleting a DataVolume
You can delete a DataVolume by using the `oc` command-line interface (CLI).
.Prerequisites
* Identify the name of the DataVolume that you want to delete.
.Procedure
* Delete the DataVolume by running the following command:
+
[source,terminal]
----
$ oc delete dv <datavolume_name>
----
+
[NOTE]
====
This command only deletes objects that exist in the current project. Specify the
`-n <project_name>` option if the object you want to delete is in
a different project or namespace.
====