Virsh vol-delete: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 17: Line 17:
=Example=
=Example=


<pre>
<syntaxhighlight lang='bash'>
virsh vol-delete test-volume main-storage-pool
virsh vol-delete test-volume main-storage-pool
</pre>
</syntaxhighlight>

Latest revision as of 00:14, 7 December 2020

External

Internal

Overview

virsh vol-delete <volume-name> <storage-pool-name>

WARNING! vol-delete will delete the content of the underlying storage, not just removes the storage volume definition from the pool, so you risk losing state if the underlying storage was not backed up previously.

Example

virsh vol-delete test-volume main-storage-pool