Command-line

Once authenticated to the Keystone service - volumes must first be detached from any instance. Detach and delete a volume with the following commands:

[wflintstone@login1(demo) ~]$ openstack server remove volume login1 refdata01
[wflintstone@login1(demo) ~]$ openstack volume list
+--------------------------------------+--------------+-----------+------+-------------+
| ID                                   | Display Name | Status    | Size | Attached to |
+--------------------------------------+--------------+-----------+------+-------------+
| 835b9f57-8299-4bec-bf94-3256d445168b | refdata01    | available |    5 |             |
+--------------------------------------+--------------+-----------+------+-------------+
[wflintstone@login1(demo) ~]$ openstack volume delete refdata01