Description
Specify tenant ID and volume ID, then delete a volume.
If a snapshot of the volume exists, you cannot delete the volume until you delete the snapshot.
Request URL
Block Storage API v2 DELETE /v2/{tenant_id}/volumes/{volume_id}
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | User Token | header | |
tenant_id | URI | ||
volume_id | URI |
Normal response codes
Accepted(202)
Example
curl -i -X DELETE \ -H "Accept: application/json" \ -H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \ https://block-storage.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/volumes/f7028d8d-89b7-499d-b185-1045d440c378
HTTP/1.1 202 Accepted Date: Tue, 09 Dec 2014 06:09:18 GMT Server: Apache Content-Length: 0 Content-Type: application/json