---
title: "Delete cloud server volume"
sidebar_label: "Delete volume"
sidebar_position: 9
description: "How to delete a volume"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import {TabItemLabel} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Delete cloud server volume

[A local disk](/cloud-servers/volumes/about-local-disks.mdx) can only be removed together with the server it is attached to.

[Network volumes](/cloud-servers/volumes/about-network-volumes.mdx) can be removed together with the server or detached from the server and removed separately.

:::danger

If you delete a volume, the data cannot be recovered. We recommend creating a copy of the data before deleting the volume: [create a volume image](/cloud-servers/images/create-image.mdx#create-image-from-volume) or [create another volume](/cloud-servers/volumes/create-volume.mdx) from this volume. Volume snapshots will be deleted along with the volume.

:::

<Tabs queryString="delete-volume">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    1. If the volume is attached to a cloud server, detach the volume from the server.
    2. In the [control panel](https://my.selectel.ru/vpc/default/images/), from the top menu, click **Products** and select **Cloud Servers**.
    3. Go to the **Volumes** section.
    4. In the  volume menu, select **Delete volume**.<MoreVerticalIcon />
  </TabItem>

  <TabItem value="openstack">
    <TabItemLabel>
      OpenStack CLI
    </TabItemLabel>

    1. [Open the OpenStack CLI](/cloud-servers/tools/openstack-cli/).

    2. If the volume is attached to a cloud server, detach it from the server:

       ```bash
       openstack server remove volume <server> <volume>
       ```

       Specify:

       * `<server>` — the server ID or name. You can view the list using the `openstack server list`
       * `<volume>` — the volume ID or name. You can view the list using the `openstack volume list`

    3. Delete the volume:

       ```bash
       openstack volume delete <volume>
       ```
  </TabItem>
</Tabs>

<Formbricks />
