You can use the rmvolume command-line interface (CLI) command or the management GUI to delete an existing image mode volume.
If any remote copy, FlashCopy or host mappings still exist for this volume, the delete fails. If the volume is currently mapped to hosts, use the -removehostmappings parameter to remove any host mappings to that volume. Similarly, you can use the -removercrelationships and the -removefcmaps parameters to delete any existing remote copy relationships or FlashCopy mappings when the volume is deleted.
The command will fail if the data on the managed disk cannot be made consistent with the data that a host could have previously read from the volume. An example scenario where this can happen is where the cache flush could not be completed successfully, for example, because the volume is offline. You can use the -discardimage parameter to force the deletion of an image mode volume.
The volume protection feature can be enabled to prevent a volume being deleted if it has received I/O within a defined time period.
To delete an image mode volume with the command-line interface, complete this step:
rmvolume myImageVolwhere myImageVol is the name of the image mode volume being deleted.