Delete Block Device

Delete Block Device

Delete a BlockDevice

  1. A block device cannot be deleted when attached to a machine.

  2. A block device with persistent property set to 'false' is deleted.

  3. A block device with persistent property set to 'true' needs an additional parameter 'purge' to be set to true, for deletion.

Request
URI
DELETE
https://api.mgmt.cloud.vmware.com//iaas/api/block-devices/{id}
COPY
Path Parameters
string
id
Required

The ID of the block device.

Query Parameters
boolean
purge
Optional

Indicates if the disk has to be completely destroyed or should be kept in the system. Valid only for persistent disks.

boolean
forceDelete
Optional

forceDelete

string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about


Responses
202

successful operation

Returns RequestTracker of type(s) application/json
{
    "name": "Power-off",
    "progress": 90,
    "resources": [
        "string"
    ],
    "id": "we655aew4e8e",
    "message": "In Progress",
    "status": "FINISHED",
    "selfLink": "/.../request-tracker/we655aew4e8e"
}
string
name
Optional

Name of the operation.

integer As int32 As int32
progress
Required

Progress of the request as percentage.

array of string
resources
Optional

Collection of resources.

string
id
Required

ID of this request.

string
message
Optional

Status message of the request.

string
status
Required

Status of the request.

Possible values are : FINISHED, INPROGRESS, FAILED,
string
selfLink
Required

Self link of this request.


204

No Content

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure