rmvolume

Use the rmvolume command to remove a volume.

Syntax

Read syntax diagramSkip visual syntax diagram  rmvolume   -removehostmappings  -removercrelationships  -removefcmaps  -discardimage  -cancelbackup   volume_id  volume_name 

Parameters

-removehostmappings
(Optional) Allows a volume to be deleted even if host mappings are removed and this volume is deleted.
-removercrelationships
(Optional) Allows a volume to be deleted even if it is a part of a remote copy relationship.
-removefcmaps
(Optional) Allows a volume to be deleted even if it is a part of a FlashCopy® mapping and regardless of the state of the mappings. FlashCopy mappings that are rc_controlled (for change volumes) require this parameter to be specified to force the deletion of a change volume while it is configured in a remote copy relationship. However, you can remove the change volume from the relationship before you delete it to avoid data loss.
-discardimage
(Optional) Allows a volume to be deleted even if data on an image mode copy cannot be made consistent.
Important: Using this parameter might result in data loss. Use it only under the direction of your product support information, or if you are willing to accept the risk of data loss on the volume.
-cancelbackup
(Optional) Allows a volume to be deleted even if a backup operation is in progress.
Important: Using this parameter might result in data loss. Use it only under the direction of your product support information, or if you are willing to accept the risk of data loss on the volume.
volume_id | volume_name
(Required) Specifies the volume to be removed.

Description

Use the rmvolume command to remove a volume.

Important: Using this command deletes all copies of a volume and it cannot be undone. If the volume is replicated, the recovery copy of the volume will also be removed unless the recovery volume group has independent access enabled.

An invocation example to remove a volume

rmvolume 0

The detailed resulting output:

No feedback