[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Desktop](../../index.md) > [Step-by-step guides](../index.md) > Desktop groups > Deleting a desktop group

# Deleting a desktop group

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder containing the desktop group.
  1. Navigate to **Cloud Desktop**.
  1. Click ![image](../../../_assets/console-icons/ellipsis.svg) next to the desktop group you want to delete, then select **Delete**.
  
      {% note tip %}

      To delete multiple desktop groups, select them in the list and click **Delete** at the bottom of the screen.

      {% endnote %}

  1. Confirm the deletion.

- Yandex Cloud 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. See the [CLI](../../../cli/index.md) command for the [desktop group](../../concepts/desktops-and-groups.md) deletion:

      ```bash
      yc desktops group delete --help
      ```

  1. Get a list of desktop groups in the default folder:

      ```bash
      yc desktops group list
      ```
      
      Result:
      
      ```text
      +----------------------+------------------+--------+---------------------+
      |          ID          |       NAME       | STATUS |   CREATED (UTC-0)   |
      +----------------------+------------------+--------+---------------------+
      | e3v1rbln45tl******** | my-desktop-group | ACTIVE | 2024-10-09 20:12:00 |
      | e3v7ikg3d4ga******** | ubuntu-group     | ACTIVE | 2024-10-09 19:34:10 |
      | e3v80f10pc01******** | kosmos-group     | ACTIVE | 2024-10-09 18:58:17 |
      +----------------------+------------------+--------+---------------------+
      ```

  1. Select the desktop group `ID` or `NAME`, e.g., `my-desktop-group`.
  1. Delete the desktop group:

     ```bash
     yc desktops group delete <desktop_group_name_or_ID>
     ```

- API {#api}

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

{% endlist %}