mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
30 lines
661 B
Plaintext
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.
|
|
====
|