• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Cinder V3 Interfaces
  5. Volumes
  6. Delete Volume

Delete Volume

Function Description

This interface is used to delete a specified volume.

Interface Format

Method

URI

Description

DELETE

/v3/{project_id}/volumes/{volume_id}

Deletes the specified volume.

Restrictions

If the volume has snapshots not deleted, the volume cannot be deleted.

If the volume is being attached, the volume cannot be deleted.

If the volume is being migrated, the volume cannot be deleted.

If the volume status is not available, error, error_restoring, or error_extending, volume deletion fails.

Extension Description

N/A

Request Parameter

N/A

Response Parameter

N/A

Request Example

DELETE https://volume.localdomain.com:8776/v3/b84c367e4d1047fc9b54f28b400ddbc2/volumes/0cf90bab-c513-46df-8559-45ba6de80e3f

Response Example

N/A

Error Code

See section Processing Return Code.