12.3.4. Deleting a Storage Pool Using virsh
The following demonstrates how to delete 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.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow virsh pool-destroy guest_images_disk
# virsh pool-destroy guest_images_disk
- Optionally, if you want to remove the directory where the storage pool resides use the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow virsh pool-delete guest_images_disk
# virsh pool-delete guest_images_disk
- Remove the storage pool's definition
Copy to Clipboard Copied! Toggle word wrap Toggle overflow virsh pool-undefine guest_images_disk
# virsh pool-undefine guest_images_disk