Delete snapshot image
The delete snapImage command deletes one or more snapshot images from a snapshot group.
Supported Arrays
This command applies to an individual DE2000H, DE4000H, DE4000F, DE6000H, or DE6000F storage array.
Roles
To execute this command on an storage array, you must have the Storage Admin role.
Syntax
delete snapImage (snapGroup="<var id="GUID-0E13FD57-47E7-4268-898F-0406788CC3CA__V1447929" className="keyword varname">snapGroupName</var>" |
snapGroups=("<var id="GUID-0E13FD57-47E7-4268-898F-0406788CC3CA__V1447930" className="keyword varname">snapGroupName1</var>"
... "<var id="GUID-0E13FD57-47E7-4268-898F-0406788CC3CA__V1447931" className="keyword varname">snapGroupNamen</var>"))
[deleteCount=<var id="GUID-0E13FD57-47E7-4268-898F-0406788CC3CA__V1448189" className="keyword varname">numberOfSnapImages</var>]
[retainCount=<var id="GUID-0E13FD57-47E7-4268-898F-0406788CC3CA__V1448190" className="keyword varname">numberOfSnapImages</var>]
[ignoreSnapVolume=(TRUE | FALSE)]
[snapImageID=<span id="GUID-0E13FD57-47E7-4268-898F-0406788CC3CA__V1520108" className="keyword parmname">OLDEST</span>]
Parameters
Parameter | Description |
---|---|
snapGroup | The name of the snapshot group that has the snapshot image that you want to delete. Enclose the name of the snapshot group in double quotation marks (" "). |
snapGroups | The names of several snapshot groups that has the snapshot image that you want to delete. Enter the names of the snapshot groups using these rules:
|
deleteCount | The number of snapshot images that you want to delete from the snapshot group. Use integer values. This parameter deletes the oldest snapshot image first and continues to delete the oldest snapshot images until reaching the number that you enter. If the number that you enter is greater than the actual number of all of the snapshot images in the snapshot group, all of the snapshot images will be deleted. The snapshot group is left empty. |
retainCount | The number of snapshot images that you want to keep in the snapshot group. Use integer values. This parameter keeps the most recent snapshot images in the snapshot group and deletes older snapshot images. If the number of existing snapshot images in the snapshot group is less than the number that you enter, none of the snapshot images are deleted. |
ignoreSnapVolume | Use this parameter to make sure that you do not delete a snapshot image that has a snapshot volume associated with the snapshot image. You can use one of these values:
The default value is TRUE . |
snapImageID | The snapImageID parameter accepts only the OLDEST option. This parameter deletes the earliest snapshot image created. |
Notes
You can delete the oldest snapshot image from a snapshot group repository volume. The definition of a snapshot image that you delete is removed from the system. The space occupied by the snapshot image that you delete from the snapshot group repository volume is released and made available for reuse within the snapshot group.
If you do not use any other parameters with the snapGroup parameter or snapGroups parameter, by default the oldest snapshot image is deleted.
Any snapshot volumes that exist for a snapshot image transition to the Stopped state when the snapshot image is deleted.
This command will not run when the controller is in Lock-down mode.