volume delete

Prev Next

This command deletes a block storage volume.

Usage

volume delete --id ID
              [--force]

Required Parameters

--id ID

Specifies which volume to delete.

Options

--force

If hosts are mapped to the volume, this option forces unmapping of the hosts and deletion of the volume.

Example

vcli: admin> volume delete --id 1
Are you sure you want to delete the volume? [y/N] y
Command REST Error: {"detail":"Volume is mapped to hosts"}
vcli: admin> volume delete --id 1 --force
Are you sure you want to delete the volume? [y/N] y
vcli: admin>