12.2.4. Deleting a Storage Pool Using virsh
- To avoid any issues with other guest virtual machines using the same pool, it is best to stop the storage pool and release any resources in use by it.
virsh pool-destroy guest_images_disk
# virsh pool-destroy guest_images_disk
Copy to Clipboard Copied! - Optionally, if you want to remove the directory where the storage pool resides use the following command:
virsh pool-delete guest_images_disk
# virsh pool-delete guest_images_disk
Copy to Clipboard Copied! - Remove the storage pool's definition
virsh pool-undefine guest_images_disk
# virsh pool-undefine guest_images_disk
Copy to Clipboard Copied!