Delete disk
Delete disk
Local disk can only be deleted together with the server it is connected to.
network volumes can be deleted with the server or disconnected from the server and deleted separately.
carefully
If you delete the disk, the data cannot be recovered. We recommend making a copy of the data before deleting the disk — create a disk image or create another disk from this disk. The disk snapshots will be deleted along with the disk.
- Control panel
- OpenStack CLI
- If the disk is connected to a cloud server, disconnect the disk from the server.
- In Control Panel, go to Cloud Platform → Disks.
- From the menu ( ) of the drive, select Delete Disk.
-
If the disk is connected to a cloud server, disconnect it from the server:
openstack server remove volume <server> <volume>
Specify:
<server>
— server name or ID, the list can be viewed with theopenstack server list
command<volume>
— disk name or ID, the list can be viewed with theopenstack volume list
command
-
Remove the disk:
openstack volume delete <volume>
-
If you want to delete multiple disks at once, type:
openstack volume delete <volume_1> <volume_2> <volume_3>