[Yandex Cloud documentation](../../index.md) > [Yandex Cloud Backup](../index.md) > [Step-by-step guides](index.md) > VM in Cloud Backup > Deleting a VM from Cloud Backup

# Deleting a VM from Cloud Backup

When you delete a VM from Cloud Backup, it remains in Yandex Compute Cloud and keeps running. You need to [delete](../../compute/operations/vm-control/vm-delete.md) a VM from Compute Cloud separately.

{% note info %}

If you delete a VM from Compute Cloud using the management console it is also deleted from Cloud Backup. If you use the CLI, Terraform, or an API request, the VM remains available in Cloud Backup.

{% endnote %}

If you want to reconnect a VM to Cloud Backup after you delete it, use these guides:

* [Connecting a Linux VM](connect-vm-linux.md)
* [Connecting a Windows VM](connect-vm-windows.md)

To delete a VM from Cloud Backup:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder to delete the VM from.
  1. Navigate to **Cloud Backup**.
  1. Next to the VM you want to delete, click ![image](../../_assets/console-icons/ellipsis.svg) and select **Delete**.
  1. Confirm the deletion.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. View a description of the CLI command to delete a VM from Cloud Backup:

      ```bash
      yc backup vm delete --help
      ```

  1. Get the ID of the VM to delete:

      ```bash
      yc compute instance list
      ```
      
      Result:
      
      ```text
      +----------------------+---------+---------------+---------+--------------+-------------+
      |          ID          |  NAME   |    ZONE ID    | STATUS  | EXTERNAL IP  | INTERNAL IP |
      +----------------------+---------+---------------+---------+--------------+-------------+
      | jklp0o9i8012******** | my-vm-1 | ru-central1-b | RUNNING | 51.250.**.** | 192.168.*.* |
      | mnoa5s6d8345******** | my-vm-2 | ru-central1-b | RUNNING | 84.201.**.** | 192.168.*.* |
      +----------------------+---------+---------------+---------+--------------+-------------+
      ```

  1. Delete the VM by specifying its ID:

      ```bash
      yc backup vm delete <VM_ID>
      ```

- API {#api}

  Use the [delete](../backup/api-ref/Resource/delete.md) REST API method for the [Resource](../backup/api-ref/Resource/index.md) resource or the [ResourceService/Delete](../backup/api-ref/grpc/Resource/delete.md) gRPC API call.

{% endlist %}