Releases an independent cloud disk when it is no longer in use. When you call this interface, consider the following:
Before you release an independent cloud disk, you must make sure that:
Your manual snapshot is retained in the console.
You can call
ModifyDiskAttributeto decide whether the automatic snapshots of your cloud disk is retained or released along with the disk. We recommend that you delete unnecessary snapshots to guarantee an enough snapshot data storage for periodical automatic snapshot policies.
When you release a specified cloud disk, the status of the disk must be
If the specified cloud disk does not exist, your request is ignored.
|Action||String||Yes||The name of this interface. Value: DeleteDisk.|
|DiskId||String||Yes||The ID of the cloud disk to be released.|
All are common response parameters. For more information, see Common parameters.
&<Common Request Parameters>
|Error code||Error message||HTTP status code||Meaning|
|DiskCreatingSnapshot||The operation is denied due to a snapshot of the specified disk is not completed yet.||403||A snapshot of the specified cloud disk is being created. Please try again later.|
|DiskNotPortable||The specified disk is not a portable disk.||403||The disk cannot be detached.|
|DiskTypeViolation||You cannot release the system disk of an instance.||403||The specified cloud disk is a system disk and cannot be released.|
|IncorrectDiskStatus||The current disk status does not support this operation.||403||The status of the cloud disk must be |