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

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

# Delete a cloud server

:::danger

After deletion, a cloud server and its volumes cannot be recovered.

:::

The local boot volume is deleted along with the server, while a network boot volume can be [detached from the server](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server) before deletion.

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

    1. To save data, [detach the network boot volume from the server](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server).

    2. In the [Control panel](https://my.selectel.ru/vpc/default/servers/), on the top menu, click **Products** and select **Cloud Servers**.

    3. In the <MoreVerticalIcon /> server menu, select **Delete server**.

    4. Optional: select the volumes and public IP addresses you want to delete along with the server.

    5. Click **Delete**. If you selected volumes and public IP addresses in step 4, they will be automatically deleted along with the server.
  </TabItem>

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

    If network ports are connected to the server, they will not be deleted when using OpenStack CLI, they will only be disconnected from the server. To delete a port, use the [Delete port](/cloud-servers/cloud-networks/ports.mdx#delete-port) instructions.

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

    2. To save data, [detach the network boot volume from the server](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server).

    3. Delete the cloud server:

       ```bash
       openstack server delete <server>
       ```

       Specify `<server>` — the server ID or name. You can view the list of servers using the `openstack server list`
  </TabItem>
</Tabs>

<Formbricks />
